oauth2 #7

Merged
francois merged 3 commits from oauth2 into main 2024-08-24 15:45:41 +00:00
Showing only changes of commit 6ccbe23169 - Show all commits

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'