- 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>
29 lines
672 B
PHP
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');
|
|
}
|
|
}
|