WEB API independent

This commit is contained in:
tuyang.yhj
2023-06-30 13:17:58 +08:00
parent aed2cb21a9
commit c621bf1e33
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ def knowledge_list():
return params
@router.get("/index")
@router.get("/")
async def read_main():
return FileResponse(f"{static_file_path}/index.html")

View File

@@ -66,7 +66,7 @@ app.add_middleware(
)
app.mount("/_next/static", StaticFiles(directory=static_file_path + "/_next/static", html=True))
app.mount("/", StaticFiles(directory=static_file_path), name="static2")
app.mount("/static", StaticFiles(directory=static_file_path), name="static2")
app.include_router(knowledge_router)
app.include_router(api_v1)