lthn.io/app/Mod/Names/Boot.php
Claude 0899881138
feat(lthn.io): name registration API, Blade views, wallet RPC
- POST /v1/names/register endpoint with wallet RPC integration
- WalletRpc service for alias registration via daemon wallet
- Blade views for homepage, explorer, names directory, network status
- Explorer and Names modules with view namespaces and web controllers
- Pool endpoint graceful offline handling
- Explorer block detail, aliases, search views

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

29 lines
672 B
PHP

<?php
declare(strict_types=1);
namespace Mod\Names;
use Core\Events\ApiRoutesRegistering;
use Core\Events\WebRoutesRegistering;
use Illuminate\Support\Facades\Route;
class Boot
{
public static array $listens = [
WebRoutesRegistering::class => 'onWebRoutes',
];
public function onWebRoutes(): void
{
app('view')->addNamespace('names', __DIR__ . '/Views');
Route::prefix('v1/names')->group(__DIR__ . '/Routes/api.php');
Route::prefix('names')->group(__DIR__ . '/Routes/web.php');
}
public function onApiRoutes(): void
{
Route::prefix('v1/names')->group(__DIR__ . '/Routes/api.php');
}
}