diff --git a/internal/api/router.go b/internal/api/router.go index 789b8205d5..5c4fa21370 100644 --- a/internal/api/router.go +++ b/internal/api/router.go @@ -314,7 +314,7 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf configGroup.POST("/reset_config", cm.ResetConfig) } { - r.POST("/restart", cm.Restart) + r.POST("/restart", cm.CheckAdmin, cm.Restart) } return r, nil }