2020-11-11 02:57:43 +00:00
|
|
|
module.exports = exports = {
|
|
|
|
|
|
|
|
prefix: '/api/v1/menu',
|
|
|
|
|
2020-11-11 18:23:31 +00:00
|
|
|
middleware: [],
|
2020-11-11 02:57:43 +00:00
|
|
|
|
|
|
|
get: {
|
|
|
|
// Get the user's menu tree
|
2020-11-11 18:23:31 +00:00
|
|
|
'/items': [
|
|
|
|
['middleware::auth:ApiRoute', { allow_public: true }],
|
|
|
|
'controller::api:v1:Menu.get_items',
|
|
|
|
],
|
2020-11-11 02:57:43 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
post: {
|
2021-01-03 03:50:28 +00:00
|
|
|
'/move-node': [
|
|
|
|
['middleware::auth:ApiRoute', { allow_public: true }],
|
|
|
|
'controller::api:v1:Menu.move_node',
|
|
|
|
],
|
2020-11-11 02:57:43 +00:00
|
|
|
},
|
|
|
|
}
|