22 lines
454 B
JavaScript
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',
|
|
],
|
|
},
|
|
}
|