Skip to content

Commit 2b3a4ff

Browse files
authored
Merge pull request #142 from newock/fix-route-middleware
Fix route middleware
2 parents b134702 + a2958a8 commit 2b3a4ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BackupToolServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ protected function routes()
4040
return;
4141
}
4242

43-
Nova::router(['nova', Authorize::class], 'backups')
43+
Nova::router(config('nova.api_middleware', []), 'backups')
4444
->group(__DIR__.'/../routes/inertia.php');
4545

46-
Route::middleware(['nova', Authorize::class])
46+
Route::middleware(config('nova.api_middleware', []))
4747
->prefix('/nova-vendor/spatie/backup-tool')
4848
->group(
4949
__DIR__.'/../routes/api.php'

0 commit comments

Comments
 (0)