Files
nullcart/backend/src/config/throttleProfiles.ts
T
2026-08-28 17:31:02 +02:00

16 lines
536 B
TypeScript

import { getAppConfig } from './index';
const {
throttle: { ttlMs }
} = getAppConfig();
export const throttleProfiles = {
checkOrder: { default: { limit: 10, ttl: ttlMs } },
cmsLogin: { default: { limit: 5, ttl: ttlMs } },
walletWithdraw: { default: { limit: 5, ttl: ttlMs } },
walletRevealSeed: { default: { limit: 5, ttl: ttlMs } },
checkoutPay: { default: { limit: 5, ttl: ttlMs } },
cartDiscount: { default: { limit: 10, ttl: ttlMs } },
cartPage: { default: { limit: 40, ttl: ttlMs } }
} as const;