瀏覽代碼

user fomr added

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

+ 2 - 2
main.py

@@ -55,9 +55,9 @@ class anchor_request(BaseModel):
 async def root():
     return {"message": "Hello, this is index"}
 
-@app.post("/index")
+@app.get("/index")
 async def input_table():
-    return templates.TemplateResponse("index2.html")
+    return FileResponse('index2.html')
 
 @app.post("/make_video_req")
 async def make_video_req(req:request):