@@ -640,7 +640,7 @@ func RegisterRoutes(m *macaron.Macaron) {
640
640
m .Group ("/:username/:reponame" , func () {
641
641
m .Combo ("" ).Get (reqAnyRepoReader (), repo .Get ).
642
642
Delete (reqToken (), reqOwner (), repo .Delete ).
643
- Patch (reqToken (), reqAdmin (), bind (api.EditRepoOption {}), context . RepoRefForAPI ( ), repo .Edit )
643
+ Patch (reqToken (), reqAdmin (), context . RepoRefForAPI (), bind (api.EditRepoOption {}), repo .Edit )
644
644
m .Post ("/transfer" , reqOwner (), bind (api.TransferRepoOption {}), repo .Transfer )
645
645
m .Combo ("/notifications" ).
646
646
Get (reqToken (), notify .ListRepoNotifications ).
@@ -713,8 +713,8 @@ func RegisterRoutes(m *macaron.Macaron) {
713
713
Delete (reqToken (), repo .DeleteIssueComment )
714
714
m .Combo ("/reactions" ).
715
715
Get (repo .GetIssueCommentReactions ).
716
- Post (bind (api.EditReactionOption {}), reqToken ( ), repo .PostIssueCommentReaction ).
717
- Delete (bind (api.EditReactionOption {}), reqToken ( ), repo .DeleteIssueCommentReaction )
716
+ Post (reqToken (), bind (api.EditReactionOption {}), repo .PostIssueCommentReaction ).
717
+ Delete (reqToken (), bind (api.EditReactionOption {}), repo .DeleteIssueCommentReaction )
718
718
})
719
719
})
720
720
m .Group ("/:index" , func () {
@@ -754,8 +754,8 @@ func RegisterRoutes(m *macaron.Macaron) {
754
754
})
755
755
m .Combo ("/reactions" ).
756
756
Get (repo .GetIssueReactions ).
757
- Post (bind (api.EditReactionOption {}), reqToken ( ), repo .PostIssueReaction ).
758
- Delete (bind (api.EditReactionOption {}), reqToken ( ), repo .DeleteIssueReaction )
757
+ Post (reqToken (), bind (api.EditReactionOption {}), repo .PostIssueReaction ).
758
+ Delete (reqToken (), bind (api.EditReactionOption {}), repo .DeleteIssueReaction )
759
759
})
760
760
}, mustEnableIssuesOrPulls )
761
761
m .Group ("/labels" , func () {
0 commit comments