lthn.io/app/Mod/Explorer/Boot.php
Claude d83c9094cd
refactor: move /v1/* API routes exclusively to Website/Api module
Production stack has honeypot that null-routes API payloads sent to
the web domain. API routes now only register via Website/Api module
(api.lthn.io). Mod modules stripped to web-only routes. Frontend JS
fetch calls use configurable API_URL for cross-origin API access.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 09:36:59 +01:00

21 lines
479 B
PHP

<?php
declare(strict_types=1);
namespace Mod\Explorer;
use Core\Events\WebRoutesRegistering;
use Illuminate\Support\Facades\Route;
class Boot
{
public static array $listens = [
WebRoutesRegistering::class => 'onWebRoutes',
];
public function onWebRoutes(WebRoutesRegistering $event): void
{
$event->views('explorer', __DIR__ . '/Views');
$event->routes(fn () => Route::prefix('explorer')->group(__DIR__ . '/Routes/web.php'));
}
}