From 5f300427993fceb0c1b5d2e5f15027a5bc7b3cb1 Mon Sep 17 00:00:00 2001 From: ykiakao Date: Thu, 21 May 2026 22:26:01 -0500 Subject: [PATCH] Use app URL for route index links --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 6dbe892..b371ab5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -5,7 +5,7 @@ use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; Route::get('/', function () { - $baseUrl = request()->root(); + $baseUrl = rtrim((string) config('app.url'), '/') ?: request()->root(); $routes = [ ['name' => 'base', 'method' => 'GET', 'path' => '/', 'auth' => 'Sem JWT', 'type' => 'open'], ['name' => 'health', 'method' => 'GET', 'path' => '/health', 'auth' => 'Sem JWT', 'type' => 'open'],