2021-08-26 22:19:19 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
method: 'GET',
|
|
|
|
|
path: '/addresses',
|
|
|
|
|
handler: 'address.find',
|
|
|
|
|
config: {
|
2021-08-28 14:16:39 +02:00
|
|
|
policies: ['address'],
|
2021-08-26 22:19:19 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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: [],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|