We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d178ab0 commit 731b631Copy full SHA for 731b631
main.py
@@ -95,8 +95,9 @@ async def load_config():
95
app.include_router(admin_api)
96
97
98
+@app.exception_handler(404)
99
@app.get("/")
-async def index():
100
+async def index(request=None, exc=None):
101
return HTMLResponse(
102
content=open(
103
BASE_DIR / f"{settings.themesSelect}/index.html", "r", encoding="utf-8"
0 commit comments