24 lines
438 B
TypeScript
Raw Normal View History

2024-05-05 12:55:34 -07:00
import { RateLimiterMemory } from "rate-limiter-flexible"
export const saveFileRL = new RateLimiterMemory({
points: 3,
duration: 1,
})
2024-05-05 12:58:45 -07:00
export const MAX_BODY_SIZE = 5 * 1024 * 1024
2024-05-05 12:55:34 -07:00
export const createFileRL = new RateLimiterMemory({
points: 3,
duration: 1,
})
export const renameFileRL = new RateLimiterMemory({
points: 3,
duration: 1,
})
export const deleteFileRL = new RateLimiterMemory({
points: 3,
duration: 1,
})