Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from NavigoLearn/fix-likes
Browse files Browse the repository at this point in the history
Update session validation and paths for like/dislike
  • Loading branch information
sopyb authored Sep 16, 2023
2 parents 9d2a4a4 + 1e406aa commit 82750e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/constants/Paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]+)',
},
Expand Down
2 changes: 1 addition & 1 deletion src/routes/roadmapsRoutes/RoadmapsUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {

const RoadmapsUpdate = Router({ mergeParams: true });

RoadmapsUpdate.post('*', validateSession);
RoadmapsUpdate.all('*', validateSession);

// ! Owner only
RoadmapsUpdate.post(
Expand Down

0 comments on commit 82750e2

Please sign in to comment.