瀏覽代碼

static page

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

+ 6 - 0
main.py

@@ -56,6 +56,12 @@ async def root():
 @app.get("/index2")
 @app.get("/index2")
 async def index2():
 async def index2():
     return FileResponse('index2.html')
     return FileResponse('index2.html')
+@app.get("/script_msg.js")
+async def index2():
+    return FileResponse('script_msg.js')
+@app.get("/style.css")
+async def index2():
+    return FileResponse('style.css')
 
 
 @app.post("/make_video_req")
 @app.post("/make_video_req")
 async def make_video_req(req:request):
 async def make_video_req(req:request):