mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-30 23:56:25 +00:00
WEB API independent
This commit is contained in:
@@ -97,7 +97,7 @@ def knowledge_list():
|
|||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
@router.get("/index")
|
@router.get("/")
|
||||||
async def read_main():
|
async def read_main():
|
||||||
return FileResponse(f"{static_file_path}/index.html")
|
return FileResponse(f"{static_file_path}/index.html")
|
||||||
|
|
||||||
|
@@ -66,7 +66,7 @@ app.add_middleware(
|
|||||||
)
|
)
|
||||||
|
|
||||||
app.mount("/_next/static", StaticFiles(directory=static_file_path + "/_next/static", html=True))
|
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(knowledge_router)
|
||||||
app.include_router(api_v1)
|
app.include_router(api_v1)
|
||||||
|
Reference in New Issue
Block a user