sopyb / NavigoLearnAPI

REST API of NavigoLearn
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

Update session validation and paths for like/dislike #61

Closed sopyb closed 1 year ago

sopyb commented 1 year ago

Changes include switching to 'RoadmapsUpdate.all' in RoadmapsUpdate.ts to apply 'validateSession' for all types of HTTP requests. This change is deemed necessary for better session validation.

Also in Paths.ts, the Like and Dislike paths were streamlined from '/:roadmapId([0-9]+)/like' and '/:roadmapId([0-9]+)/dislike' to '/like' and '/dislike' respectively to simplify their structure. Please note that in this case, the roadmapId will have to be passed in the request body or as a query parameter.