From ccd95221c81e88eaef71fbe858fcd1cde2b825d6 Mon Sep 17 00:00:00 2001 From: Alexandre Bodin Date: Wed, 17 Nov 2021 14:53:45 +0100 Subject: [PATCH] Fix single types routes --- packages/core/strapi/lib/core-api/routes/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/strapi/lib/core-api/routes/index.js b/packages/core/strapi/lib/core-api/routes/index.js index 9300107ccb..50e0e6d652 100644 --- a/packages/core/strapi/lib/core-api/routes/index.js +++ b/packages/core/strapi/lib/core-api/routes/index.js @@ -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: {}, },