diff --git a/src/constants/Paths.ts b/src/constants/Paths.ts index 1a73b47..4cb4a72 100644 --- a/src/constants/Paths.ts +++ b/src/constants/Paths.ts @@ -44,8 +44,8 @@ const Paths = { // Everyone Progress: '/progress', - Like: '/:roadmapId([0-9]+)/like', - Dislike: '/:roadmapId([0-9]+)/dislike', + Like: '/like', + Dislike: '/dislike', }, Delete: '/:roadmapId([0-9]+)', }, diff --git a/src/routes/roadmapsRoutes/RoadmapsUpdate.ts b/src/routes/roadmapsRoutes/RoadmapsUpdate.ts index 10e3c76..7b48694 100644 --- a/src/routes/roadmapsRoutes/RoadmapsUpdate.ts +++ b/src/routes/roadmapsRoutes/RoadmapsUpdate.ts @@ -17,7 +17,7 @@ import { const RoadmapsUpdate = Router({ mergeParams: true }); -RoadmapsUpdate.post('*', validateSession); +RoadmapsUpdate.all('*', validateSession); // ! Owner only RoadmapsUpdate.post(