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