(ns *string, ah auth.HandlerFunc, rest bool)
| 741 | } |
| 742 | |
| 743 | func (s *HttpService) apiHandler(ns *string, ah auth.HandlerFunc, rest bool) http.Handler { |
| 744 | var h http.Handler |
| 745 | if rest { |
| 746 | h = s.apiV1Rest(ns, ah) |
| 747 | } else { |
| 748 | h = s.apiV1GraphQL(ns, ah) |
| 749 | } |
| 750 | return apiV1Handler(s, ns, h, ah) |
| 751 | } |
| 752 | |
| 753 | // WebUI is the http handler the web ui endpoint |
| 754 | func (s *HttpService) WebUI(routePrefix, gqlEndpoint string) http.Handler { |
no test coverage detected