Le endpoint generer est un POST

This commit is contained in:
François Pelletier 2024-08-24 00:25:03 -04:00
parent b2765ce400
commit 6ccbe23169

View file

@ -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'