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.
16 lines
394 B
16 lines
394 B
3 years ago
|
/**
|
||
|
* 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.');
|
||
|
}
|