mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-03 19:40:08 -05:00
17 lines
629 B
TypeScript
17 lines
629 B
TypeScript
import rateLimit from "@/app/middleware/rateLimit";
|
|
|
|
import { CLIENT_SIDE_API_RATE_LIMIT, LOGIN_RATE_LIMIT, SIGNUP_RATE_LIMIT } from "@formbricks/lib/constants";
|
|
|
|
export const signUpLimiter = rateLimit({
|
|
interval: SIGNUP_RATE_LIMIT.interval,
|
|
allowedPerInterval: SIGNUP_RATE_LIMIT.allowedPerInterval,
|
|
});
|
|
export const loginLimiter = rateLimit({
|
|
interval: LOGIN_RATE_LIMIT.interval,
|
|
allowedPerInterval: LOGIN_RATE_LIMIT.allowedPerInterval,
|
|
});
|
|
export const clientSideApiEndpointsLimiter = rateLimit({
|
|
interval: CLIENT_SIDE_API_RATE_LIMIT.interval,
|
|
allowedPerInterval: CLIENT_SIDE_API_RATE_LIMIT.allowedPerInterval,
|
|
});
|