@@ -502,7 +502,7 @@ func RegisterRoutes(m *macaron.Macaron) {
502
502
}, reqSignIn )
503
503
504
504
m .Group ("/:username" , func () {
505
- m .Get ("/action/:action" , user .Action )
505
+ m .Post ("/action/:action" , user .Action )
506
506
}, reqSignIn )
507
507
508
508
if macaron .Env == macaron .DEV {
@@ -534,16 +534,16 @@ func RegisterRoutes(m *macaron.Macaron) {
534
534
m .Get ("/^:type(issues|pulls)$" , user .Issues )
535
535
m .Get ("/milestones" , reqMilestonesDashboardPageEnabled , user .Milestones )
536
536
m .Get ("/members" , org .Members )
537
- m .Get ("/members/action/:action" , org .MembersAction )
537
+ m .Post ("/members/action/:action" , org .MembersAction )
538
538
539
539
m .Get ("/teams" , org .Teams )
540
540
}, context .OrgAssignment (true ))
541
541
542
542
m .Group ("/:org" , func () {
543
543
m .Get ("/teams/:team" , org .TeamMembers )
544
544
m .Get ("/teams/:team/repositories" , org .TeamRepositories )
545
- m .Route ("/teams/:team/action/:action" , "GET,POST " , org .TeamsAction )
546
- m .Route ("/teams/:team/action/repo/:action" , "GET,POST " , org .TeamsRepoAction )
545
+ m .Post ("/teams/:team/action/:action" , org .TeamsAction )
546
+ m .Post ("/teams/:team/action/repo/:action" , org .TeamsRepoAction )
547
547
}, context .OrgAssignment (true , false , true ))
548
548
549
549
m .Group ("/:org" , func () {
@@ -681,7 +681,7 @@ func RegisterRoutes(m *macaron.Macaron) {
681
681
})
682
682
}, reqSignIn , context .RepoAssignment (), context .UnitTypes (), reqRepoAdmin , context .RepoRef ())
683
683
684
- m .Get ("/:username/:reponame/action/:action" , reqSignIn , context .RepoAssignment (), context .UnitTypes (), repo .Action )
684
+ m .Post ("/:username/:reponame/action/:action" , reqSignIn , context .RepoAssignment (), context .UnitTypes (), repo .Action )
685
685
686
686
m .Group ("/:username/:reponame" , func () {
687
687
m .Group ("/issues" , func () {
@@ -735,7 +735,7 @@ func RegisterRoutes(m *macaron.Macaron) {
735
735
Post (bindIgnErr (auth.CreateMilestoneForm {}), repo .NewMilestonePost )
736
736
m .Get ("/:id/edit" , repo .EditMilestone )
737
737
m .Post ("/:id/edit" , bindIgnErr (auth.CreateMilestoneForm {}), repo .EditMilestonePost )
738
- m .Get ("/:id/:action" , repo .ChangeMilestonStatus )
738
+ m .Post ("/:id/:action" , repo .ChangeMilestonStatus )
739
739
m .Post ("/delete" , repo .DeleteMilestone )
740
740
}, context .RepoMustNotBeArchived (), reqRepoIssuesOrPullsWriter , context .RepoRef ())
741
741
m .Group ("/milestone" , func () {
0 commit comments