Add image page to return smaller images for UI
This commit is contained in:
12
src/pages/models/blob.js
Normal file
12
src/pages/models/blob.js
Normal file
@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
const cooler = require('./lib/cooler')
|
||||
const debug = require('debug')('oasis')
|
||||
|
||||
module.exports = {
|
||||
get: async ({ blobId }) => {
|
||||
debug('requested blob: %s', blobId)
|
||||
const ssb = await cooler.connect()
|
||||
return cooler.read(ssb.blobs.get, blobId)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user