@@ -502,7 +502,7 @@ func RegisterRoutes(m *macaron.Macaron) {
502502 }, reqSignIn )
503503
504504 m .Group ("/:username" , func () {
505- m .Get ("/action/:action" , user .Action )
505+ m .Post ("/action/:action" , user .Action )
506506 }, reqSignIn )
507507
508508 if macaron .Env == macaron .DEV {
@@ -534,16 +534,16 @@ func RegisterRoutes(m *macaron.Macaron) {
534534 m .Get ("/^:type(issues|pulls)$" , user .Issues )
535535 m .Get ("/milestones" , reqMilestonesDashboardPageEnabled , user .Milestones )
536536 m .Get ("/members" , org .Members )
537- m .Get ("/members/action/:action" , org .MembersAction )
537+ m .Post ("/members/action/:action" , org .MembersAction )
538538
539539 m .Get ("/teams" , org .Teams )
540540 }, context .OrgAssignment (true ))
541541
542542 m .Group ("/:org" , func () {
543543 m .Get ("/teams/:team" , org .TeamMembers )
544544 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 )
547547 }, context .OrgAssignment (true , false , true ))
548548
549549 m .Group ("/:org" , func () {
@@ -681,7 +681,7 @@ func RegisterRoutes(m *macaron.Macaron) {
681681 })
682682 }, reqSignIn , context .RepoAssignment (), context .UnitTypes (), reqRepoAdmin , context .RepoRef ())
683683
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 )
685685
686686 m .Group ("/:username/:reponame" , func () {
687687 m .Group ("/issues" , func () {
@@ -735,7 +735,7 @@ func RegisterRoutes(m *macaron.Macaron) {
735735 Post (bindIgnErr (auth.CreateMilestoneForm {}), repo .NewMilestonePost )
736736 m .Get ("/:id/edit" , repo .EditMilestone )
737737 m .Post ("/:id/edit" , bindIgnErr (auth.CreateMilestoneForm {}), repo .EditMilestonePost )
738- m .Get ("/:id/:action" , repo .ChangeMilestonStatus )
738+ m .Post ("/:id/:action" , repo .ChangeMilestonStatus )
739739 m .Post ("/delete" , repo .DeleteMilestone )
740740 }, context .RepoMustNotBeArchived (), reqRepoIssuesOrPullsWriter , context .RepoRef ())
741741 m .Group ("/milestone" , func () {
0 commit comments