Fix single types routes

This commit is contained in:
Alexandre Bodin 2021-11-17 14:53:45 +01:00
parent bab9d8bf2f
commit ccd95221c8

View File

@ -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: {},
},