Open charbelfakhry opened 9 months ago
Hello, for the friendships, i think you should do a friendships service and work on the user controller itself. The following routes should be implemented.
POST /follow (body: id of the user to follow) GET /followers?userid= (where the query parameter is the user id of the person to get all the followers from) DELETE /follow (to unfollow a user, same body as post)
use the jwt to get the user id of thw follower.
Thank you
CRUD/REST management including Controllers, services and DTO