diff --git a/src/BackupToolServiceProvider.php b/src/BackupToolServiceProvider.php index b969a19..c620b4a 100644 --- a/src/BackupToolServiceProvider.php +++ b/src/BackupToolServiceProvider.php @@ -40,10 +40,10 @@ protected function routes() return; } - Nova::router(['nova', Authorize::class], 'backups') + Nova::router(config('nova.api_middleware', []), 'backups') ->group(__DIR__.'/../routes/inertia.php'); - Route::middleware(['nova', Authorize::class]) + Route::middleware(config('nova.api_middleware', [])) ->prefix('/nova-vendor/spatie/backup-tool') ->group( __DIR__.'/../routes/api.php'