""" WalletSafe Frontend - Entity explorer, wallet search, risk page. =============================================================== Served at /walletsafe/ as a single-page app. Hits /api/v1/wallet/* endpoints directly via fetch(). """ from fastapi import APIRouter from fastapi.responses import HTMLResponse router = APIRouter(tags=["walletsafe"]) WALLETSAFE_HTML = """ WalletSafe - Wallet Intelligence Explorer """ @router.get("/walletsafe/") async def walletsafe_root(): """Serve the WalletSafe frontend.""" return HTMLResponse(content=WALLETSAFE_HTML) @router.get("/walletsafe") async def walletsafe_no_slash(): """Redirect to /walletsafe/.""" return HTMLResponse(content=WALLETSAFE_HTML)