INNER CODE UNIT · Python
root_redirect
SHAdd0WTAka/Zen-Ai-Pentest · api/main.py:757
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">
<defs>
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#06b6d4;stop-opacity:1" />
<stop offset="100%" style="stop-color:#0891b2;stop-opacity:1" />
</linearGradient>
</defs>