diff options
author | Unknwon <u@gogs.io> | 2015-11-22 01:32:09 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-22 01:32:09 -0500 |
commit | 52c8f691630548fe091d30bcfe8164545a05d3d5 (patch) | |
tree | 12ad797f4c2f8ae6ea81e59e4a0e73ec76abaef3 /cmd | |
parent | b80e848d02b4e27e067910c03aadeddcbdd5f3f5 (diff) | |
download | gitea-52c8f691630548fe091d30bcfe8164545a05d3d5.tar.gz gitea-52c8f691630548fe091d30bcfe8164545a05d3d5.zip |
fix #650
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 0ca9f4f537..bf94ad1955 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -393,8 +393,8 @@ func runWeb(ctx *cli.Context) { m.Get("/teams", org.Teams) m.Get("/teams/:team", org.TeamMembers) m.Get("/teams/:team/repositories", org.TeamRepositories) - m.Get("/teams/:team/action/:action", org.TeamsAction) - m.Get("/teams/:team/action/repo/:action", org.TeamsRepoAction) + m.Route("/teams/:team/action/:action", "GET,POST", org.TeamsAction) + m.Route("/teams/:team/action/repo/:action", "GET,POST", org.TeamsRepoAction) }, middleware.OrgAssignment(true, true)) m.Group("/:org", func() { |