mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-23 07:37:15 +08:00
feat: new adaptation root path configuration
This commit is contained in:
1 parent
d178ab04a2
commit
731b6319d0
1 file changed
+2
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user