MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / file_download

Function file_download

apps/admin/views.py:502–507  ·  view source on GitHub ↗
(
    id: int,
    file_service: FileService = Depends(get_file_service),
)

Source from the content-addressed store, hash-verified

500
501@admin_api.get("/file/download")
502async def file_download(
503 id: int,
504 file_service: FileService = Depends(get_file_service),
505):
506 file_content = await file_service.download_file(id)
507 return file_content
508
509
510@admin_api.get("/file/preview")

Callers

nothing calls this directly

Calls 1

download_fileMethod · 0.80

Tested by

no test coverage detected