|
|
@@ -2,48 +2,48 @@ |
|
|
|
"routes": [ |
|
|
|
{ |
|
|
|
"method": "GET", |
|
|
|
"path": "/categories", |
|
|
|
"handler": "category.find", |
|
|
|
"path": "/accessories", |
|
|
|
"handler": "accessories.find", |
|
|
|
"config": { |
|
|
|
"policies": [] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"method": "GET", |
|
|
|
"path": "/categories/count", |
|
|
|
"handler": "category.count", |
|
|
|
"path": "/accessories/count", |
|
|
|
"handler": "accessories.count", |
|
|
|
"config": { |
|
|
|
"policies": [] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"method": "GET", |
|
|
|
"path": "/categories/:id", |
|
|
|
"handler": "category.findOne", |
|
|
|
"path": "/accessories/:id", |
|
|
|
"handler": "accessories.findOne", |
|
|
|
"config": { |
|
|
|
"policies": [] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"method": "POST", |
|
|
|
"path": "/categories", |
|
|
|
"handler": "category.create", |
|
|
|
"path": "/accessories", |
|
|
|
"handler": "accessories.create", |
|
|
|
"config": { |
|
|
|
"policies": [] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"method": "PUT", |
|
|
|
"path": "/categories/:id", |
|
|
|
"handler": "category.update", |
|
|
|
"path": "/accessories/:id", |
|
|
|
"handler": "accessories.update", |
|
|
|
"config": { |
|
|
|
"policies": [] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"method": "DELETE", |
|
|
|
"path": "/categories/:id", |
|
|
|
"handler": "category.delete", |
|
|
|
"path": "/accessories/:id", |
|
|
|
"handler": "accessories.delete", |
|
|
|
"config": { |
|
|
|
"policies": [] |
|
|
|
} |