INNER CODE UNIT · Python
favicon
BlessedRebuS/Krawl · src/app.py:361
async def favicon():
if os.path.exists(os.path.join(data_dir, "favicon.ico")):
return FileResponse(os.path.join(data_dir, "favicon.ico"))
return FileResponse(os.path.join(static_dir, "favicon.ico"))
# Import and include routers
from routes.api import router as api_router
from routes.dashboard import router as dashboard_router
from routes.honeypot import router as honeypot_router
from routes.htmx import router as htmx_router
# Dashboard/API/HTMX routes (prefixed with secret path, before honeypot catch-all)
application.include_router(
dashboard_router, prefix=dashboard_prefix, include_in_schema=False
)
application.include_router(api_router, prefix=dashboard_prefix)
application.include_router(
htmx_router, prefix=dashboard_prefix, include_in_schema=False