ghost
Version:
The professional publishing platform
16 lines (13 loc) • 398 B
JavaScript
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:images');
const mapper = require('./utils/mapper');
module.exports = {
upload(path, apiConfig, frame) {
debug('upload');
return frame.response = {
images: [{
url: mapper.mapImage(path),
ref: frame.data.ref || null
}]
};
}
};