first init

This commit is contained in:
Power BI Dev
2026-08-17 10:52:09 +07:00
commit 88c7c653c2
9281 changed files with 2156575 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import rateLimit from 'express-rate-limit';
import { config } from '../config.js';
export const createBoardLimiter = rateLimit({
windowMs: 60 * 60 * 1000, // 1 hour window
max: config.rateLimitMaxBoardsPerHour, // max 5 boards per IP per hour
standardHeaders: true,
legacyHeaders: false,
message: {
error: 'Rate Limit Exceeded',
message: `You have reached the limit of ${config.rateLimitMaxBoardsPerHour} boards per hour. Please wait before creating another board.`,
},
});