Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(routes): local API docs not available on domain or IP

peaklabs-deva8b5f6befcf1
diff --git a/routes/web.php b/routes/web.php
index 618e4e0900..8876824d35 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');
});