11 lines
410 B
JavaScript
11 lines
410 B
JavaScript
import { collection, get, post } from '../helpers/request.ts';
|
|
|
|
export default {
|
|
...collection('mediaFolder/'),
|
|
|
|
getHierarchy: async id => await get('mediaFolder/getHierarchy', { params: { id } }),
|
|
|
|
getAllAsTree: async (parent, active) => await get('mediaFolder/getAllAsTree', { params: { parent, active } }),
|
|
|
|
move: async (id, destinationId) => await post('mediaFolder/move', { id, destinationId })
|
|
}; |