Files
mixtape/zero.Web.UI/app/api/media-folder.js
T

11 lines
410 B
JavaScript
Raw Normal View History

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