...
|
...
|
@@ -11,11 +11,7 @@ const IP_WHITE_LIST = [ |
|
|
];
|
|
|
|
|
|
const limiter = (rule, policy, context) => {
|
|
|
return rule({
|
|
|
req: context.req,
|
|
|
res: context.res,
|
|
|
next: context.next
|
|
|
}, policy);
|
|
|
return rule(context, policy);
|
|
|
};
|
|
|
|
|
|
module.exports = (req, res, next) => {
|
...
|
...
|
|