This commit is contained in:
cjw
2026-02-16 02:56:11 +08:00
parent d63ee4245b
commit 5ee99413e5
3 changed files with 194 additions and 13 deletions
+4
View File
@@ -96,6 +96,10 @@ import os
static_dir = os.path.join(os.getcwd(), "static")
app.mount("/static", StaticFiles(directory=static_dir), name="static")
# 挂载HTML输出目录
html_output_dir = os.path.join(os.getcwd(), "html_output")
app.mount("/html-output", StaticFiles(directory=html_output_dir), name="html_output")
# 注册路由
app.include_router(router)