From dc067b3308e8469f2bd7a98180c5f40fe788d4f4 Mon Sep 17 00:00:00 2001 From: Chaim Lev Ari Date: Wed, 16 Jan 2019 17:41:56 +0200 Subject: [PATCH] refactor(http): remove old oauth handler --- api/http/handler/handler.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/http/handler/handler.go b/api/http/handler/handler.go index f818edf4c..9cb3059df 100644 --- a/api/http/handler/handler.go +++ b/api/http/handler/handler.go @@ -60,8 +60,6 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { switch { case strings.HasPrefix(r.URL.Path, "/api/auth"): http.StripPrefix("/api", h.AuthHandler).ServeHTTP(w, r) - case strings.HasPrefix(r.URL.Path, "/api/oauth"): - http.StripPrefix("/api", h.AuthHandler).ServeHTTP(w, r) case strings.HasPrefix(r.URL.Path, "/api/dockerhub"): http.StripPrefix("/api", h.DockerHubHandler).ServeHTTP(w, r) case strings.HasPrefix(r.URL.Path, "/api/endpoint_groups"):