Skip to content

Commit

Permalink
Merge pull request #142 from newock/fix-route-middleware
Browse files Browse the repository at this point in the history
Fix route middleware
  • Loading branch information
freekmurze authored Dec 1, 2023
2 parents b134702 + a2958a8 commit 2b3a4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BackupToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2b3a4ff

Please sign in to comment.