mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
parameter as url instead of query
This commit is contained in:
parent
4c24bd2b5e
commit
8f33035cc2
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ async def get_recipe_img(recipe_slug: str, file_name: ImageType = ImageType.orig
|
|||
raise HTTPException(status.HTTP_404_NOT_FOUND)
|
||||
|
||||
|
||||
@router.get("/{recipe_slug}/asset")
|
||||
@router.get("/{recipe_slug}/assets/{file_name}")
|
||||
async def get_recipe_asset(recipe_slug, file_name: str):
|
||||
""" Returns a recipe asset """
|
||||
file = app_dirs.RECIPE_DATA_DIR.joinpath(recipe_slug, file_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue