Skip to content

Moved Comment Likes Over to the Comments Controller.#177

Open
nosyrbllewe wants to merge 2 commits into
mainfrom
move-comment-likes
Open

Moved Comment Likes Over to the Comments Controller.#177
nosyrbllewe wants to merge 2 commits into
mainfrom
move-comment-likes

Conversation

@nosyrbllewe

Copy link
Copy Markdown
Contributor

Previously, liking a comment was on the PostController, even though it had nothing to do with posts. Now, liking/unliking a comment is on the CommentController. This changes the REST endpoint from /api/posts/{postId}/comments/{commentId}/like to /api/comments/{commentId}/like. The postId wasn't even use previously anyway.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant