backend/app/routing/routers/api/v1/menu.routes.js

22 lines
454 B
JavaScript
Raw Normal View History

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',
],
},
}