47 lines
754 B
JavaScript
Raw Normal View History

2021-08-26 22:19:19 +02:00
'use strict';
module.exports = {
routes: [
{
method: 'GET',
path: '/reviews',
handler: 'review.find',
config: {
policies: [],
},
},
{
method: 'GET',
path: '/reviews/:id',
handler: 'review.findOne',
config: {
policies: [],
},
},
{
method: 'POST',
path: '/reviews',
handler: 'review.create',
config: {
policies: [],
},
},
{
method: 'PUT',
path: '/reviews/:id',
handler: 'review.update',
config: {
policies: [],
},
},
{
method: 'DELETE',
path: '/reviews/:id',
handler: 'review.delete',
config: {
policies: [],
},
},
],
};