ci: adapt for current webui

This commit is contained in:
Junyan Qin
2025-04-28 21:59:37 +08:00
parent 1949ebb304
commit 23321ce8e6
4 changed files with 12 additions and 3 deletions

View File

@@ -65,11 +65,19 @@ class HTTPController:
ginst = g(self.ap, self.quart_app)
await ginst.initialize()
frontend_path = "web/dist"
frontend_path = "web/out"
@self.quart_app.route("/")
async def index():
return await quart.send_from_directory(frontend_path, "index.html")
@self.quart_app.route("/login")
async def login():
return await quart.send_from_directory(frontend_path, "login.html")
@self.quart_app.route("/home")
async def home():
return await quart.send_from_directory(frontend_path, "home.html")
@self.quart_app.route("/<path:path>")
async def static_file(path: str):

View File

@@ -145,7 +145,7 @@ class Application:
async def print_web_access_info(self):
"""打印访问 webui 的提示"""
if not os.path.exists(os.path.join(".", "web/dist")):
if not os.path.exists(os.path.join(".", "web/out")):
self.logger.warning("WebUI 文件缺失请根据文档获取https://docs.langbot.app/webui/intro.html")
return