Newer
Older
percord / src / middlewares / RateLimit.ts
@Flam3rboy Flam3rboy on 27 Jun 2021 302 bytes :lock: register proxy ip check
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) => {};
}