MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / index

Function index

main.py:838–849  ·  view source on GitHub ↗
(request=None, exc=None)

Source from the content-addressed store, hash-verified

836@app.exception_handler(404)
837@app.get("/")
838async def index(request=None, exc=None):
839 return HTMLResponse(
840 content=resolve_theme_file("index.html")
841 .read_text(encoding="utf-8")
842 .replace("{{title}}", str(settings.name))
843 .replace("{{description}}", str(settings.description))
844 .replace("{{keywords}}", str(settings.keywords))
845 .replace("{{opacity}}", str(settings.opacity))
846 .replace("{{background}}", str(settings.background)),
847 media_type="text/html",
848 headers={"Cache-Control": "no-cache"},
849 )
850
851
852@app.get("/robots.txt")

Calls 1

resolve_theme_fileFunction · 0.85

Tested by 1