mirror of
https://github.com/sergeyyarkov/blog-example.git
synced 2026-10-11 18:29:02 +03:00
53 lines
923 B
JSON
53 lines
923 B
JSON
{
|
|
"routes": [
|
|
{
|
|
"method": "GET",
|
|
"path": "/articles",
|
|
"handler": "article.find",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/articles/count",
|
|
"handler": "article.count",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/articles/:id",
|
|
"handler": "article.findOne",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/articles",
|
|
"handler": "article.create",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "PUT",
|
|
"path": "/articles/:id",
|
|
"handler": "article.update",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "DELETE",
|
|
"path": "/articles/:id",
|
|
"handler": "article.delete",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
}
|
|
]
|
|
}
|