Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jul 24, 2024
1 parent e05c46d commit 68f9612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/app/routers/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def upload_image(crud: Annotated[Crud, Depends(Crud.get)], file: UploadFil
raise HTTPException(status_code=500, detail=str(e))


@image_router.get("{image_fname}")
@image_router.get("/{image_fname}")
async def image_url(image_fname: str) -> RedirectResponse:
image_url = f"{settings.site.image_base_url}/{image_fname}"
return RedirectResponse(url=image_url)

0 comments on commit 68f9612

Please sign in to comment.