You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
941 B
JSON
53 lines
941 B
JSON
{
|
|
"routes": [
|
|
{
|
|
"method": "GET",
|
|
"path": "/categories",
|
|
"handler": "category.find",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/categories/count",
|
|
"handler": "category.count",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/categories/:id",
|
|
"handler": "category.findOne",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/categories",
|
|
"handler": "category.create",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "PUT",
|
|
"path": "/categories/:id",
|
|
"handler": "category.update",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "DELETE",
|
|
"path": "/categories/:id",
|
|
"handler": "category.delete",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
}
|
|
]
|
|
}
|