backend/app/routing/routers/api/v1/menu.routes.js
garrettmills 9df5f2d5f4
All checks were successful
continuous-integration/drone/push Build is passing
Split API into multiple files & setup public user permissions
2020-11-11 12:23:31 -06:00

19 lines
304 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: {
},
}