Skip to content

Commit 731b631

Browse files
author
Lan
committed
feat: new adaptation root path configuration
1 parent d178ab0 commit 731b631

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ async def load_config():
9595
app.include_router(admin_api)
9696

9797

98+
@app.exception_handler(404)
9899
@app.get("/")
99-
async def index():
100+
async def index(request=None, exc=None):
100101
return HTMLResponse(
101102
content=open(
102103
BASE_DIR / f"{settings.themesSelect}/index.html", "r", encoding="utf-8"

0 commit comments

Comments
 (0)