diff --git a/controller/controller.go b/controller/controller.go index 726a85b8..bc6fb8f0 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -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 }