backend/app/routing/routers/api/v1/menu.routes.js
garrettmills 93d192d69c
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Add API endpoint for moving page nodes in tree
2021-01-02 21:50:28 -06:00

22 lines
454 B
JavaScript

module.exports = exports = {
prefix: '/api/v1/menu',
middleware: [],
get: {
// Get the user's menu tree
'/items': [
['middleware::auth:ApiRoute', { allow_public: true }],
'controller::api:v1:Menu.get_items',
],
},
post: {
'/move-node': [
['middleware::auth:ApiRoute', { allow_public: true }],
'controller::api:v1:Menu.move_node',
],
},
}