Files
BanGUI/backend/tests
Lukas 7308ff88d6 fix(rate-limit): stop double-counting requests in middleware
Multiple RateLimitMiddleware instances were each calling
check_allowed() on every request, halving the effective global
limit (200 req/min became ~100). Added path_prefixes and skip_paths
so each instance only checks the paths it owns.

- Auth middleware scoped to /api/v1/auth/login and /api/v1/setup
- History middleware scoped to /api/v1/history
- Global middleware skips auth and history paths
- Updated tests to match single-count behavior
2026-05-15 23:04:02 +02:00
..
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-05-04 07:20:16 +02:00
2026-05-15 20:41:05 +02:00
2026-05-15 20:41:05 +02:00
2026-03-24 19:46:12 +01:00