feat: new adaptation root path configuration

This commit is contained in:
Lan
2025-02-16 22:25:14 +08:00
parent cfb73fba6b
commit 783da1e397
+2 -1
View File
@@ -95,8 +95,9 @@ app.include_router(share_api)
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"