mirror of
https://github.com/strapi/strapi.git
synced 2025-08-01 05:17:14 +00:00
47 lines
754 B
JavaScript
47 lines
754 B
JavaScript
![]() |
'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: [],
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|