image file info toegevoegd bij CMD+ENTER
This commit is contained in:
@@ -79,6 +79,19 @@ async def pdf(
|
||||
)
|
||||
|
||||
|
||||
@router.get("/image")
|
||||
async def image(
|
||||
path: str,
|
||||
service: FileOpsService = Depends(get_file_ops_service),
|
||||
) -> StreamingResponse:
|
||||
prepared = service.prepare_image_stream(path=path)
|
||||
return StreamingResponse(
|
||||
prepared["content"],
|
||||
headers=prepared["headers"],
|
||||
media_type=prepared["content_type"],
|
||||
)
|
||||
|
||||
|
||||
@router.get("/thumbnail")
|
||||
async def thumbnail(
|
||||
path: str,
|
||||
|
||||
Reference in New Issue
Block a user