Skip to content

Commit

Permalink
chore: fixed api route middleware issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvroroy committed Jan 28, 2024
1 parent fbfab3a commit 8d524de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;
use Laravel\Nova\Http\Middleware\Authenticate;
use ShuvroRoy\NovaDynamicViews\Http\Middleware\Authorize;

class ToolServiceProvider extends ServiceProvider
Expand All @@ -23,7 +24,7 @@ protected function routes(): void
return;
}

Route::middleware(['nova', Authorize::class])
Route::middleware(['nova', Authenticate::class, Authorize::class])
->prefix('nova-vendor/nova-dynamic-views')
->group(__DIR__.'/../routes/api.php');
}
Expand Down

0 comments on commit 8d524de

Please sign in to comment.