mirror of
https://github.com/strapi/strapi.git
synced 2025-10-25 06:51:12 +00:00
47 lines
778 B
JavaScript
Executable File
47 lines
778 B
JavaScript
Executable File
'use strict';
|
|
|
|
module.exports = {
|
|
routes: [
|
|
{
|
|
method: 'GET',
|
|
path: '/addresses',
|
|
handler: 'address.find',
|
|
config: {
|
|
policies: ['address'],
|
|
},
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/addresses/:id',
|
|
handler: 'address.findOne',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/addresses',
|
|
handler: 'address.create',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
{
|
|
method: 'PUT',
|
|
path: '/addresses/:id',
|
|
handler: 'address.update',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
{
|
|
method: 'DELETE',
|
|
path: '/addresses/:id',
|
|
handler: 'address.delete',
|
|
config: {
|
|
policies: [],
|
|
},
|
|
},
|
|
],
|
|
};
|