From a8b5f6befcf10e3029b9aa3fde2756a9551735f1 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:51:46 +0100 Subject: [PATCH] fix(routes): local API docs not available on domain or IP --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 618e4e090..8876824d3 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::group(['middleware' => ['auth:sanctum', ApiAllowed::class]], function () { +Route::middleware(['auth', ApiAllowed::class])->group(function () { Route::get('/docs/api', DocumentationController::class)->name('redoc.documentation'); Route::get('/docs/api/definition', DefinitionController::class)->name('redoc.definition'); });