/** * Created by PengLing on 2017/12/25. */ 'use strict'; const api = require('./lib/api'); const Attachment = require('./lib/mw'); module.exports = Attachment; module.exports.entry = function (app, router, opts) { const attachment = new Attachment(opts); api(app, router, opts, attachment); app.fs.logger.log('info', '[FS-ATTACHMENT]', 'Inject attachment mw into router.'); }