mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 04:03:25 +00:00
109 lines
2.2 KiB
JSON
109 lines
2.2 KiB
JSON
{
|
|
"routes": [
|
|
{
|
|
"method": "GET",
|
|
"path": "/content-types",
|
|
"handler": "ContentTypes.listContentTypes",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/content-types/:uid",
|
|
"handler": "ContentTypes.findContentType",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "PUT",
|
|
"path": "/content-types/:uid",
|
|
"handler": "ContentTypes.updateContentType",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/components",
|
|
"handler": "Components.listComponents",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/components/:uid",
|
|
"handler": "Components.findComponent",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "PUT",
|
|
"path": "/components/:uid",
|
|
"handler": "Components.updateComponent",
|
|
"config": {
|
|
"policies": []
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/explorer/:model",
|
|
"handler": "ContentManager.find",
|
|
"config": {
|
|
"policies": ["routing"]
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/explorer/:model/count",
|
|
"handler": "ContentManager.count",
|
|
"config": {
|
|
"policies": ["routing"]
|
|
}
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/explorer/:model/:id",
|
|
"handler": "ContentManager.findOne",
|
|
"config": {
|
|
"policies": ["routing"]
|
|
}
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/explorer/:model",
|
|
"handler": "ContentManager.create",
|
|
"config": {
|
|
"policies": ["routing"]
|
|
}
|
|
},
|
|
{
|
|
"method": "PUT",
|
|
"path": "/explorer/:model/:id",
|
|
"handler": "ContentManager.update",
|
|
"config": {
|
|
"policies": ["routing"]
|
|
}
|
|
},
|
|
{
|
|
"method": "DELETE",
|
|
"path": "/explorer/deleteAll/:model",
|
|
"handler": "ContentManager.deleteMany",
|
|
"config": {
|
|
"policies": ["routing"]
|
|
}
|
|
},
|
|
{
|
|
"method": "DELETE",
|
|
"path": "/explorer/:model/:id",
|
|
"handler": "ContentManager.delete",
|
|
"config": {
|
|
"policies": ["routing"]
|
|
}
|
|
}
|
|
]
|
|
}
|