INNER CODE UNIT · Python

custom_swagger_ui_html

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

async def custom_swagger_ui_html():
    """Swagger UI with Dark Mode support"""
    from fastapi.responses import FileResponse

    return FileResponse(os.path.join(os.path.dirname(__file__), "static", "swagger_dark.html"))


def get_zen_redoc_html() -> str:
    """Generate custom ReDoc HTML with dark theme"""
    return """<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Zen-AI-Pentest API - ReDoc</title>
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="description" content="Zen-AI-Pentest API Documentation">
    <style>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…