Skip to content

Commit 825c0e7

Browse files
committed
add reactions to comment API
1 parent 3005fb6 commit 825c0e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routers/api/v1/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@ func RegisterRoutes(m *macaron.Macaron) {
672672
m.Combo("",reqToken()).
673673
Patch(bind(api.EditIssueCommentOption{}), repo.EditIssueCommentDeprecated).
674674
Delete(repo.DeleteIssueCommentDeprecated)
675+
m.Combo("/reactions").
676+
Get(bind(api.CommentReactionList{}), repo.GetCommentReactions).
677+
Put(reqToken(), repo.AddCommentReaction).
678+
Delete(reqToken(), repo.DelCommentReaction)
675679
})
676680
})
677681

0 commit comments

Comments
 (0)