oauth2 #7
1 changed files with 1 additions and 1 deletions
2
main.py
2
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'
|
||||
|
|
Loading…
Reference in a new issue