MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / file_preview

Function file_preview

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

Source from the content-addressed store, hash-verified

509
510@admin_api.get("/file/preview")
511async def file_preview(
512 id: int,
513 maxChars: int = 4000,
514 file_service: FileService = Depends(get_file_service),
515):
516 preview = await file_service.preview_file(id, maxChars)
517 return APIResponse(detail=preview)
518
519
520@admin_api.get("/local/lists")

Callers

nothing calls this directly

Calls 2

APIResponseClass · 0.90
preview_fileMethod · 0.80

Tested by

no test coverage detected