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