mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 20:58:16 +00:00
53 lines
890 B
JSON
53 lines
890 B
JSON
{
|
|
"routes": [
|
|
{
|
|
"method": "GET",
|
|
"path": "/posts",
|
|
"handler": "Post.find",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/posts/count",
|
|
"handler": "Post.count",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/posts/:_id",
|
|
"handler": "Post.findOne",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/posts",
|
|
"handler": "Post.create",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "PUT",
|
|
"path": "/posts/:_id",
|
|
"handler": "Post.update",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "DELETE",
|
|
"path": "/posts/:_id",
|
|
"handler": "Post.delete",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
}
|
|
]
|
|
}
|