瀏覽代碼

add static file

ming 3 年之前
父節點
當前提交
fa685e5a83
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -95,7 +95,7 @@ async def root():
 
 
 @app.get("/index2")
 @app.get("/index2")
 async def index2():
 async def index2():
-    return FileResponse('index2.html')
+    return FileResponse('static/index2.html')
 
 
 @app.get("/gen_avatar")
 @app.get("/gen_avatar")
 async def index2():
 async def index2():