INNER CODE UNIT · Python

get_zen_swagger_html

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

def get_zen_swagger_html() -> str:
    """Generate custom Swagger UI HTML with dark theme"""
    try:
        with open(os.path.join(os.path.dirname(__file__), "static", "swagger_dark.html"), "r") as f:
            return f.read()
    except Exception:
        pass

    html_template = """<!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 - Swagger UI</title>
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css" />
    <style>
        :root {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…