teams: moved logic for searchteams to backend

This commit is contained in:
Hugo Häggmark authored and Leonard Gram committed 2019-03-19 14:01:15 +01:00
1 parent 782b5b6a3a
commit b60e71c28b
4 files changed
+13 -9

No files matched your search

+1 -1
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.