mirror of
https://github.com/strapi/strapi.git
synced 2025-07-22 00:17:15 +00:00
45 lines
719 B
JavaScript
45 lines
719 B
JavaScript
![]() |
module.exports = {
|
||
|
routes: [
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/temps',
|
||
|
handler: 'temp.find',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/temps/:id',
|
||
|
handler: 'temp.findOne',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/temps',
|
||
|
handler: 'temp.create',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'PUT',
|
||
|
path: '/temps/:id',
|
||
|
handler: 'temp.update',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'DELETE',
|
||
|
path: '/temps/:id',
|
||
|
handler: 'temp.delete',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|