spacebar/src/middlewares/RateLimit.ts
2021-06-27 23:14:13 +02:00

9 lines
302 B
TypeScript

import { db, MongooseCache } from "@fosscord/server-util";
import { NextFunction } from "express";
const Cache = new MongooseCache(db.collection("ratelimit"), [], { onlyEvents: false });
export default function RateLimit({}) {
return async (req: Request, res: Response, next: NextFunction) => {};
}