Skip to content

Commit

Permalink
Missing reqToken()
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig committed Jul 10, 2017
1 parent cd21bc6 commit 3f0efdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routers/api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ func RegisterRoutes(m *macaron.Macaron) {
Patch(reqToken(), bind(api.EditIssueOption{}), repo.EditIssue)

m.Group("/comments", func() {
m.Combo("").Get(repo.ListIssueComments).Post(bind(api.CreateIssueCommentOption{}), repo.CreateIssueComment)
m.Combo("").Get(repo.ListIssueComments).
Post(reqToken(), bind(api.CreateIssueCommentOption{}), repo.CreateIssueComment)
m.Combo("/:id", reqToken()).Patch(bind(api.EditIssueCommentOption{}), repo.EditIssueComment).
Delete(repo.DeleteIssueComment)
})
Expand Down

0 comments on commit 3f0efdc

Please sign in to comment.