api/http/handler/handler.go
Method Handler.ServeHTTP
has 89 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
switch {
case strings.HasPrefix(r.URL.Path, "/api/endpoints") && strings.Contains(r.URL.Path, "/edge/"):
h.EndpointEdgeHandler.ServeHTTP(w, r)
case strings.HasPrefix(r.URL.Path, "/api/auth"):