Quellcode durchsuchen

user fomr added

ming vor 3 Jahren
Ursprung
Commit
fb7d687748
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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):