(max = 10)
| 7 | const ConnectionController = require("../controllers/ConnectionController"); |
| 8 | |
| 9 | const apiLimiter = (max = 10) => { |
| 10 | return rateLimit({ |
| 11 | windowMs: 60 * 1000, // 1 minute |
| 12 | max, |
| 13 | }); |
| 14 | }; |
| 15 | |
| 16 | module.exports = (app) => { |
| 17 | const dataRequestController = new DataRequestController(); |