Authored by htoooth

refactor

... ... @@ -20,7 +20,7 @@ const logger = global.yoho.logger;
const TYPE = require('./type');
const DIR = './rule/';
const DIR = './rules/';
const curDir = path.resolve(__dirname, DIR);
const files = fs.readdirSync(curDir);
... ... @@ -38,7 +38,7 @@ files.forEach((file) => {
try {
domainRules[module] = require(loadPath);
} catch (e) {
logger.error('load rule wrong', e);
logger.error('load rules wrong', e);
}
}
});
... ...
... ... @@ -3,6 +3,7 @@
*/
'use strict';
const helpers = global.yoho.helpers;
const TYPE = require('../type');
... ...
/**
* Created by TaoHuang on 2017/2/21.
*/
'use strict;'
'use strict';
const helpers = global.yoho.helpers;
const TYPE = require('../type');
... ...
... ... @@ -3,6 +3,7 @@
*/
'use strict';
const helpers = global.yoho.helpers;
const TYPE = require('../type');
... ...
... ... @@ -4,7 +4,6 @@
* @date: 2016/6/16
*/
'use strict';
const helpers = global.yoho.helpers;
module.exports = () => {
return (req, res, next) => {
... ...