This commit is contained in:
TwinProduction 2021-01-31 23:29:48 -05:00
parent bc42497cb7
commit 1e0d9e184c

View File

@ -69,7 +69,7 @@ func CreateRouter(cfg *config.Config) *mux.Router {
func secureIfNecessary(cfg *config.Config, handler http.HandlerFunc) http.HandlerFunc {
if cfg.Security != nil && cfg.Security.IsValid() {
return security.Handler(serviceStatusesHandler, cfg.Security)
return security.Handler(handler, cfg.Security)
}
return handler
}