Fix #17: Add comment explaining token query param in download_attachment
Some checks failed
Deploy Tracker / deploy (push) Failing after 4s

This commit is contained in:
markov 2026-02-26 15:16:42 +01:00
parent 19bb797856
commit b6f12c2a56

View File

@ -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."""