teams: moved logic for searchteams to backend

This commit is contained in:
Hugo Häggmark
2019-03-13 14:05:08 +01:00
committed by Leonard Gram
parent 782b5b6a3a
commit b60e71c28b
4 changed files with 13 additions and 9 deletions

View File

@ -168,7 +168,7 @@ func (hs *HTTPServer) registerRoutes() {
// team without requirement of user to be org admin
apiRoute.Group("/teams", func(teamsRoute routing.RouteRegister) {
teamsRoute.Get("/:teamId", Wrap(GetTeamByID))
teamsRoute.Get("/search", Wrap(SearchTeams))
teamsRoute.Get("/search", Wrap(hs.SearchTeams))
})
// org information available to all users.