Fix #17: Add comment explaining token query param in download_attachment
Some checks failed
Deploy Tracker / deploy (push) Failing after 4s
Some checks failed
Deploy Tracker / deploy (push) Failing after 4s
This commit is contained in:
parent
19bb797856
commit
b6f12c2a56
@ -63,7 +63,7 @@ async def upload_file(
|
|||||||
@router.get("/attachments/{attachment_id}/download")
|
@router.get("/attachments/{attachment_id}/download")
|
||||||
async def download_attachment(
|
async def download_attachment(
|
||||||
attachment_id: str,
|
attachment_id: str,
|
||||||
token: str | None = None,
|
token: str | None = None, # Auth handled by middleware (query param for img src)
|
||||||
db: AsyncSession = Depends(get_db),
|
db: AsyncSession = Depends(get_db),
|
||||||
):
|
):
|
||||||
"""Download an attachment by ID."""
|
"""Download an attachment by ID."""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user