|
|
@ -5,7 +5,7 @@ const fs = require('fs'); |
|
|
|
const path = require('path'); |
|
|
|
const authenticator = require('./middlewares/authenticator'); |
|
|
|
// const apiLog = require('./middlewares/api-log');
|
|
|
|
const businessRest = require('./middlewares/business-rest'); |
|
|
|
// const businessRest = require('./middlewares/business-rest');
|
|
|
|
|
|
|
|
module.exports.entry = function (app, router, opts) { |
|
|
|
app.fs.logger.log('info', '[FS-AUTH]', 'Inject auth and api mv into router.'); |
|
|
@ -15,7 +15,7 @@ module.exports.entry = function (app, router, opts) { |
|
|
|
app.fs.api.logAttr = app.fs.api.logAttr || {}; |
|
|
|
|
|
|
|
router.use(authenticator(app, opts)); |
|
|
|
router.use(businessRest(app, router, opts)); |
|
|
|
// router.use(businessRest(app, router, opts));
|
|
|
|
// router.use(apiLog(app, opts));
|
|
|
|
|
|
|
|
router = routes(app, router, opts); |
|
|
|