MCPcopy
hub / github.com/chartbrew/chartbrew / apiLimiter

Function apiLimiter

server/api/AiRoute.js:14–19  ·  view source on GitHub ↗
(max = 10)

Source from the content-addressed store, hash-verified

12const TeamController = require("../controllers/TeamController");
13
14const apiLimiter = (max = 10) => {
15 return rateLimit({
16 windowMs: 60 * 1000, // 1 minute
17 max,
18 });
19};
20
21const checkAccess = async (req, res, next) => {
22 try {

Callers 1

AiRoute.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected