UNPKG

@loftysoul/soul

Version:

The professional Content Management System, based ghost

16 lines (13 loc) 394 B
const debug = require('ghost-ignition').debug('api:v2: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 }] }; } };