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>
21 lines
479 B
PHP
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'));
|
|
}
|
|
}
|