From 6ccbe23169c91a6e52ce2c6dca1c690d3a71a554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 24 Aug 2024 00:25:03 -0400 Subject: [PATCH] Le endpoint generer est un POST --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index fd3d773..0b70c7a 100644 --- a/main.py +++ b/main.py @@ -230,7 +230,7 @@ async def supprimer_image(nom_image: str, current_user: Annotated[User, Depends( return {"message": f"Successfully deleted {nom_image}"} -@app.get("/generer/") +@app.post("/generer/") async def generer(specs: DocumentSpecs, current_user: Annotated[User, Depends(get_current_active_user)]): header_file = f'{os.getcwd()}/styles/{specs.style}/{specs.format}/header.tex' cover_file = f'{os.getcwd()}/styles/{specs.style}/{specs.format}/cover.tex'