diff --git a/routes/web.php b/routes/web.php index 8876824d3..618e4e090 100644 --- a/routes/web.php +++ b/routes/web.php @@ -81,7 +81,7 @@ use Symfony\Component\HttpFoundation\StreamedResponse; use ThreeSidedCube\LaravelRedoc\Http\Controllers\DefinitionController; use ThreeSidedCube\LaravelRedoc\Http\Controllers\DocumentationController; -Route::middleware(['auth', ApiAllowed::class])->group(function () { +Route::group(['middleware' => ['auth:sanctum', ApiAllowed::class]], function () { Route::get('/docs/api', DocumentationController::class)->name('redoc.documentation'); Route::get('/docs/api/definition', DefinitionController::class)->name('redoc.definition'); });