mirror of
https://github.com/strapi/strapi.git
synced 2025-07-28 11:30:21 +00:00
47 lines
734 B
JavaScript
Executable File
47 lines
734 B
JavaScript
Executable File
'use strict';
|
|
|
|
module.exports = {
|
|
routes: [
|
|
{
|
|
method: 'GET',
|
|
path: '/likes',
|
|
handler: 'like.find',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/likes/:id',
|
|
handler: 'like.findOne',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/likes',
|
|
handler: 'like.create',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
{
|
|
method: 'PUT',
|
|
path: '/likes/:id',
|
|
handler: 'like.update',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
{
|
|
method: 'DELETE',
|
|
path: '/likes/:id',
|
|
handler: 'like.delete',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
],
|
|
};
|