|
|
@ -664,10 +664,10 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Combo("", reqToken()). |
|
|
|
m.Combo("", reqToken()). |
|
|
|
Patch(mustNotBeArchived, bind(api.EditIssueCommentOption{}), repo.EditIssueComment). |
|
|
|
Patch(mustNotBeArchived, bind(api.EditIssueCommentOption{}), repo.EditIssueComment). |
|
|
|
Delete(repo.DeleteIssueComment) |
|
|
|
Delete(repo.DeleteIssueComment) |
|
|
|
m.Combo("/reactions", reqToken()). |
|
|
|
m.Combo("/reactions"). |
|
|
|
Get(repo.GetIssueCommentReactions). |
|
|
|
Get(repo.GetIssueCommentReactions). |
|
|
|
Post(bind(api.EditReactionOption{}), repo.PostIssueCommentReaction). |
|
|
|
Post(bind(api.EditReactionOption{}), reqToken(), repo.PostIssueCommentReaction). |
|
|
|
Delete(bind(api.EditReactionOption{}), repo.DeleteIssueCommentReaction) |
|
|
|
Delete(bind(api.EditReactionOption{}), reqToken(), repo.DeleteIssueCommentReaction) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
m.Group("/:index", func() { |
|
|
|
m.Group("/:index", func() { |
|
|
@ -704,10 +704,10 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Put("/:user", reqToken(), repo.AddIssueSubscription) |
|
|
|
m.Put("/:user", reqToken(), repo.AddIssueSubscription) |
|
|
|
m.Delete("/:user", reqToken(), repo.DelIssueSubscription) |
|
|
|
m.Delete("/:user", reqToken(), repo.DelIssueSubscription) |
|
|
|
}) |
|
|
|
}) |
|
|
|
m.Combo("/reactions", reqToken()). |
|
|
|
m.Combo("/reactions"). |
|
|
|
Get(repo.GetIssueReactions). |
|
|
|
Get(repo.GetIssueReactions). |
|
|
|
Post(bind(api.EditReactionOption{}), repo.PostIssueReaction). |
|
|
|
Post(bind(api.EditReactionOption{}), reqToken(), repo.PostIssueReaction). |
|
|
|
Delete(bind(api.EditReactionOption{}), repo.DeleteIssueReaction) |
|
|
|
Delete(bind(api.EditReactionOption{}), reqToken(), repo.DeleteIssueReaction) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, mustEnableIssuesOrPulls) |
|
|
|
}, mustEnableIssuesOrPulls) |
|
|
|
m.Group("/labels", func() { |
|
|
|
m.Group("/labels", func() { |
|
|
|