Files
Logan Cusano 3fbdc50536
CI / lint (push) Failing after 31s
CI / test (push) Successful in 45s
Build edge-node / build (push) Successful in 8m44s
feat: implement FastAPI router, web + local UI updates, and metadata monitoring for the edge node
2026-07-12 21:30:30 -04:00

19 lines
499 B
Python

from pathlib import Path
from fastapi import APIRouter
from fastapi.responses import HTMLResponse
router = APIRouter(tags=["ui"])
_TEMPLATE = Path(__file__).parent.parent / "templates" / "index.html"
_SCANNER_TEMPLATE = Path(__file__).parent.parent / "templates" / "scanner.html"
@router.get("/", response_class=HTMLResponse)
async def index():
return _TEMPLATE.read_text()
@router.get("/scanner", response_class=HTMLResponse)
async def scanner():
return _SCANNER_TEMPLATE.read_text()