
# Frontend SPA-ish pages
@app.get("/", include_in_schema=False)
async def index():
    return FileResponse("static/index.html")


@app.get("/{page}", include_in_schema=False)
async def page(page: str):
    import os
    safe = page.replace("/", "")
    path = f"static/{safe}.html"
    if os.path.exists(path):
        return FileResponse(path)
    return JSONResponse({"error": "not found"}, status_code=404)
===
200
{"total":3,"page":1,"recipients":[{"id":1,"email":"alice@example.com","first_name":"Alice","last_name":"Smith","company_name":"Acme Corp","company_phone":"","customer_email":"alice@example.com","custom_fields":{},"status":"valid","is_valid":true,"validation_error":""},{"id":2,"email":"bob@example.co