2021-08-30 17:02:40 +02:00

47 lines
804 B
JavaScript
Executable File

'use strict';
module.exports = {
routes: [
{
method: 'GET',
path: '/menusections',
handler: 'menusection.find',
config: {
policies: [],
},
},
{
method: 'GET',
path: '/menusections/:id',
handler: 'menusection.findOne',
config: {
policies: [],
},
},
{
method: 'POST',
path: '/menusections',
handler: 'menusection.create',
config: {
policies: [],
},
},
{
method: 'PUT',
path: '/menusections/:id',
handler: 'menusection.update',
config: {
policies: [],
},
},
{
method: 'DELETE',
path: '/menusections/:id',
handler: 'menusection.delete',
config: {
policies: [],
},
},
],
};