You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
394 B
15 lines
394 B
/**
|
|
* 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.');
|
|
}
|
|
|