Files
mixtape/zero.Web.UI/app/api/media-folder.js
T
2020-11-20 15:17:41 +01:00

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 })
};