mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	exposing blobs in APIs
This commit is contained in:
		| @@ -4,9 +4,9 @@ const utils = require("../../services/utils"); | ||||
| const blobService = require("../../services/blob.js"); | ||||
|  | ||||
| function getAttachmentBlob(req) { | ||||
|     const full = req.query.full === 'true'; | ||||
|     const preview = req.query.preview === 'true'; | ||||
|  | ||||
|     return blobService.getBlobPojo('attachments', req.params.attachmentId, { full }); | ||||
|     return blobService.getBlobPojo('attachments', req.params.attachmentId, { preview }); | ||||
| } | ||||
|  | ||||
| function getAttachments(req) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user