From 419b0bbc80c8a6782139eb751c9524ca024c849d Mon Sep 17 00:00:00 2001 From: xnacly Date: Fri, 3 Sep 2021 21:36:19 +0200 Subject: Revert "added big todo list to Guild.ts (big chungus)" This reverts commit 0f58995182e438e0655071c3f1b7ea66e31cb779. --- api/src/middlewares/RateLimit.ts | 1 - api/src/routes/discoverable-guilds.ts | 14 -------------- 2 files changed, 15 deletions(-) delete mode 100644 api/src/routes/discoverable-guilds.ts (limited to 'api/src') diff --git a/api/src/middlewares/RateLimit.ts b/api/src/middlewares/RateLimit.ts index a15ccbe6..dffbc0d9 100644 --- a/api/src/middlewares/RateLimit.ts +++ b/api/src/middlewares/RateLimit.ts @@ -107,7 +107,6 @@ export default function rateLimit(opts: { } export async function initRateLimits(app: Router) { - return; const { routes, global, ip, error } = Config.get().limits.rate; await listenEvent(EventRateLimit, (event) => { Cache.set(event.channel_id as string, event.data); diff --git a/api/src/routes/discoverable-guilds.ts b/api/src/routes/discoverable-guilds.ts deleted file mode 100644 index 6ff43cdc..00000000 --- a/api/src/routes/discoverable-guilds.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Guild } from "@fosscord/util"; -import { Router, Request, Response } from "express"; -import { In } from "typeorm"; - -const router = Router(); - -router.get("/", async (req: Request, res: Response) => { - const { limit } = req.params; - - const guilds = await Guild.find({ where: { features: "PENIS" } }); //, take: Math.abs(Number(limit)) }); - res.send({ guilds: guilds }); -}); - -export default router; -- cgit 1.5.1