- 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>
19 lines
578 B
PHP
19 lines
578 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Mod\Pool\Services\PoolClient;
|
|
|
|
Route::get('/stats', function () {
|
|
$stats = app(PoolClient::class)->getStats();
|
|
return response()->json($stats ?: ['status' => 'offline']);
|
|
});
|
|
Route::get('/blocks', function () {
|
|
$blocks = app(PoolClient::class)->getBlocks();
|
|
return response()->json($blocks ?: ['status' => 'offline']);
|
|
});
|
|
Route::get('/payments', function () {
|
|
$payments = app(PoolClient::class)->getPayments();
|
|
return response()->json($payments ?: ['status' => 'offline']);
|
|
});
|