Selaa lähdekoodia

user fomr added

ming 3 vuotta sitten
vanhempi
commit
fb7d687748
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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):