diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-26 18:11:15 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-26 18:11:15 +0800 |
commit | 74b31566cf5caaf6bf73584e621d56ca99c048d1 (patch) | |
tree | 078a8428e5241d13600482301444684720a77283 /cmd | |
parent | f2c263c54facdcbc9375a47535c0389fd7d05875 (diff) | |
download | gitea-74b31566cf5caaf6bf73584e621d56ca99c048d1.tar.gz gitea-74b31566cf5caaf6bf73584e621d56ca99c048d1.zip |
Finsih add/remove repo in organization
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go index 0b3b84ab6a..cc9fa385c3 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -141,7 +141,7 @@ func runWeb(*cli.Context) { r.Get("/users/search", v1.SearchUsers) // Repositories. - r.Get("/orgs/:org/repos/search", v1.SearchOrgRepositoreis) + r.Get("/repos/search", v1.SearchRepos) r.Any("/*", func(ctx *middleware.Context) { ctx.JSON(404, &base.ApiJsonErr{"Not Found", v1.DOC_URL}) @@ -236,7 +236,9 @@ func runWeb(*cli.Context) { r.Get("/teams", org.Teams) r.Get("/teams/:team", org.TeamMembers) + r.Get("/teams/:team/repositories", org.TeamRepositories) r.Get("/teams/:team/action/:action", org.TeamsAction) + r.Get("/teams/:team/action/repo/:action", org.TeamsRepoAction) }, middleware.OrgAssignment(true, true)) m.Group("/:org", func(r *macaron.Router) { |