Use app URL for route index links

This commit is contained in:
2026-05-21 22:26:01 -05:00
parent 98e5635eb7
commit 5f30042799

View File

@@ -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'],