INNER CODE UNIT · Python

custom_redoc_html

SHAdd0WTAka/Zen-Ai-Pentest · api/main.py:751

async def custom_redoc_html() -> HTMLResponse:
    """ReDoc with Dark Mode support"""
    return HTMLResponse(content=get_zen_redoc_html())


@app.get("/", include_in_schema=False)
async def root_redirect():
    """Redirect root to docs"""
    from fastapi.responses import RedirectResponse

    return RedirectResponse(url="/docs")


@app.get("/favicon.ico", include_in_schema=False)
async def favicon():
    """Custom Zen favicon"""
    svg = """<?xml version="1.0" encoding="UTF-8"?>
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="32" height="32">

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…