lthn.io/routes/web.php
Claude 77cc45dd83
feat: lthn.io CorePHP app — TLD website + blockchain services
Modules:
- Chain: daemon RPC client (DaemonRpc singleton, cached queries)
- Explorer: block browser, tx viewer, alias directory, search, stats API
- Names: .lthn TLD registrar portal (availability check, lookup, directory)
- Trade: scaffold (DEX frontend + API)
- Pool: scaffold (mining pool dashboard)

Replaces 5 Node.js containers (5.9GB) with one FrankenPHP app.
Built on CorePHP framework pattern from host.uk.com.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-03 16:13:55 +01:00

46 lines
1.7 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Core\Tenant\View\Modal\Web\CancelDeletion;
use Core\Tenant\View\Modal\Web\ConfirmDeletion;
use Core\Tenant\View\Modal\Web\WorkspaceHome;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Marketing pages, auth, and public routes are registered via Pages module.
| Satellite routes (blog, help) are registered via Content module.
| Bio routes are registered via Bio module.
|
*/
// Account deletion (token-protected, no auth required)
Route::get('/account/delete/{token}', ConfirmDeletion::class)->name('account.delete.confirm');
Route::get('/account/delete/{token}/cancel', CancelDeletion::class)->name('account.delete.cancel');
// Host Hub - Customer panel (protected by auth)
// Only accessible from admin domains (hub.*, www.*, hestia.*, localhost)
// Most Hub routes are now registered via their respective module Boot.php files:
// - SocialHost routes: app/Mod/Social/Boot.php
// - BioHost routes: app/Mod/Bio/Boot.php
// - TrustHost routes: app/Mod/Trust/Boot.php
// Workspace public pages (served from subdomains like social.host.uk.com)
Route::get('/workspace/{workspace?}', WorkspaceHome::class)->name('workspace.show');
/*
|--------------------------------------------------------------------------
| BioLinks Public Routes
|--------------------------------------------------------------------------
|
| Public bio routes are registered via Bio module (app/Mod/Bio/routes/web.php)
| Served from: bio.host.uk.com, lnktr.fyi, custom domains
|
*/
// Dev-only test routes
if (app()->isLocal()) {
Route::get('/dev/hlcrf-test', fn () => view('core::examples.hlcrf-test'))->name('dev.hlcrf-test');
}