Skip to content

Endpoint liking and disliking endpoint #79

@Ajknight121

Description

@Ajknight121

Server handles requests to like and dislike a post

  • update user model to have list of liked comments and list of liked posts.
  • update user model to have list of disliked comments and list of disliked posts.

Server will check the userid of the request and check if they have already liked a post.

If liking/disliking for the first time adds to the liked post
if already liked or disliked the user will remove the current like or dislike and apply the new like/dislike or remove the old like/dislike

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions