diff --git a/api/server/server.go b/api/server/server.go index 5aa90e8c95..0a07f1bc69 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -1090,6 +1090,8 @@ func (s *Server) bindHandlers(ctx context.Context) { admin := s.AdminRouter // now for extensible middleware engine.Use(s.rootMiddlewareWrapper()) + // extensible middleware for the admin API + admin.Use(s.apiMiddlewareWrapper()) engine.GET("/", handlePing) admin.GET("/version", handleVersion)