mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
53 lines
941 B
JSON
Executable File
53 lines
941 B
JSON
Executable File
{
|
|
"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": []
|
|
}
|
|
}
|
|
]
|
|
}
|