mirror of
https://github.com/strapi/strapi.git
synced 2025-09-24 16:04:54 +00:00
Fix single types routes
This commit is contained in:
parent
bab9d8bf2f
commit
ccd95221c8
@ -14,19 +14,19 @@ const getSingleTypeRoutes = ({ uid, info }) => {
|
|||||||
return {
|
return {
|
||||||
find: {
|
find: {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/${info.pluralName}`,
|
path: `/${info.singularName}`,
|
||||||
handler: `${uid}.find`,
|
handler: `${uid}.find`,
|
||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
update: {
|
update: {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
path: `/${info.pluralName}`,
|
path: `/${info.singularName}`,
|
||||||
handler: `${uid}.update`,
|
handler: `${uid}.update`,
|
||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
delete: {
|
delete: {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
path: `/${info.pluralName}`,
|
path: `/${info.singularName}`,
|
||||||
handler: `${uid}.delete`,
|
handler: `${uid}.delete`,
|
||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user