added a middleware for rateLimit #171
Annotations
3 errors
Run ESLint:
src/middleware/rateLimiter.ts#L10
Replace `req:·Request,·res:·Response,·next:·NextFunction` with `⏎····req:·Request,⏎····res:·Response,⏎····next:·NextFunction⏎`
|
Run ESLint:
src/middleware/rateLimiter.ts#L11
Replace `'localhost'·||·req.hostname·===·'127.0.0.1'` with `"localhost"·||·req.hostname·===·"127.0.0.1"`
|
Run ESLint
Process completed with exit code 1.
|
Loading