bdekonin/ft_transcendence

Change hardcodes {userID} path param

Closed this issue · 1 comments

Change the path param to the id of the session. So when user 1 connects to /user/{userID}/avatar it will automatically changed to /user/1/avatar without that the frontend has to check which the user is. the backend checks it using the session connect.pid cookie

Sort of closed. Some endpoints need it