Fix jwt-token

This commit is contained in:
2025-09-07 15:14:28 +02:00
parent 3c4d338fdf
commit 9d75abc88f
2 changed files with 4 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ const limiter = rateLimit({
message: 'Too many requests from this IP, please try again later.',
skip: (req) => {
// Skip rate limiting for drone detection endpoints during testing
return req.path.includes('/detections');
return req.path.includes('/detections') || req.path.includes('/detectors');
}
});