diff --git a/api/http/handler/handler.go b/api/http/handler/handler.go index 5128a125a..24367f360 100644 --- a/api/http/handler/handler.go +++ b/api/http/handler/handler.go @@ -48,7 +48,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { case strings.HasPrefix(r.URL.Path, "/api/dockerhub"): http.StripPrefix("/api", h.DockerHubHandler).ServeHTTP(w, r) case strings.HasPrefix(r.URL.Path, "/api/endpoints"): - if strings.Contains(r.URL.Path, "/docker") { + if strings.Contains(r.URL.Path, "/docker/") { http.StripPrefix("/api/endpoints", h.DockerHandler).ServeHTTP(w, r) } else if strings.Contains(r.URL.Path, "/stacks") { http.StripPrefix("/api/endpoints", h.StackHandler).ServeHTTP(w, r)