Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosegala authored and eabili0 committed Oct 14, 2019
1 parent 9b861bc commit 55aeed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/api/hydra.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}))
})
}

0 comments on commit 55aeed5

Please sign in to comment.