2020-11-20 10:32:17 +01:00
|
|
|
import { collection, get, post } from '../helpers/request.ts';
|
2020-05-18 11:53:23 +02:00
|
|
|
|
|
|
|
|
export default {
|
2020-11-20 10:32:17 +01:00
|
|
|
...collection('mediaFolder/'),
|
2020-05-18 11:53:23 +02:00
|
|
|
|
2020-11-20 10:32:17 +01:00
|
|
|
getHierarchy: async id => await get('mediaFolder/getHierarchy', { params: { id } }),
|
2020-05-18 11:53:23 +02:00
|
|
|
|
2020-11-20 10:32:17 +01:00
|
|
|
getAllAsTree: async (parent, active) => await get('mediaFolder/getAllAsTree', { params: { parent, active } }),
|
2020-05-18 11:53:23 +02:00
|
|
|
|
2020-11-20 10:32:17 +01:00
|
|
|
move: async (id, destinationId) => await post('mediaFolder/move', { id, destinationId })
|
2020-05-18 11:53:23 +02:00
|
|
|
};
|