diff options
Diffstat (limited to 'cmd/web.go')
-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) { |