bounswe / bounswe2024group7

Collaborative hub for 2024Group7
https://bounswe.github.io/bounswe2024group7/
4 stars 3 forks source link

Issue#162 create endpoint to get random posts #165

Closed oguzhekim closed 1 month ago

oguzhekim commented 1 month ago

Created endpoint: GET /api/posts/random?count=x to get random posts. This endpoint doesn't require authentication. Refactored post endpoints. You should not send user id when creating a post from now on, the user is decided from authentication header. Delete post endpoint checks if the authenticated user is the owner of the post.

oguzhekim commented 1 month ago

Two more changes: