Skip to content

Commit

Permalink
feat: new adaptation root path configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan committed Feb 16, 2025
1 parent d178ab0 commit 731b631
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ async def load_config():
app.include_router(admin_api)


@app.exception_handler(404)
@app.get("/")
async def index():
async def index(request=None, exc=None):
return HTMLResponse(
content=open(
BASE_DIR / f"{settings.themesSelect}/index.html", "r", encoding="utf-8"
Expand Down

0 comments on commit 731b631

Please sign in to comment.