From 55aeed56e7760ee2b9b00438357cd5a18909ac8c Mon Sep 17 00:00:00 2001 From: Claudio Segala Rodrigues Silva Filho Date: Mon, 14 Oct 2019 13:52:07 -0300 Subject: [PATCH] Refactoring --- web/api/hydra.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/api/hydra.go b/web/api/hydra.go index 5b1f761..9fd000b 100644 --- a/web/api/hydra.go +++ b/web/api/hydra.go @@ -23,12 +23,12 @@ func (dapi *DefaultHydraAPI) InitFromWebBuilder(webBuilder *config.WebBuilder) * // HydraGETHandler provides the Hydra URLs func (dapi *DefaultHydraAPI) HydraGETHandler(route string) http.Handler { - return http.StripPrefix(route, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { data := map[string]interface{}{ "hydraAdminUrl": dapi.HydraAdminURL, "hydraPublicUrl": dapi.HydraPublicURL, } gohserver.WriteJSONResponse(data, http.StatusOK, w) - })) + }) }