From 061a03eced06138ae807587bd309f67193f9e764 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 17 Dec 2022 19:42:40 +1100 Subject: [PATCH] Remove /policies/instance/stats --- src/api/routes/policies/instance/stats.ts | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/api/routes/policies/instance/stats.ts diff --git a/src/api/routes/policies/instance/stats.ts b/src/api/routes/policies/instance/stats.ts deleted file mode 100644 index fb8c386a..00000000 --- a/src/api/routes/policies/instance/stats.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Router, Request, Response } from "express"; -import { route } from "@fosscord/api"; -import { Attachment, Config, Guild, Message, RateLimit, Session, User } from "@fosscord/util"; -const router = Router(); - -router.get("/", route({}), async (req: Request, res: Response) => { - res.json({ - all_time: { - users: await User.count(), - guilds: await Guild.count(), - messages: await Message.count(), - attachments: await Attachment.count(), - }, - now: { - sessions: await Session.count(), - rate_limits: await RateLimit.count(), - } - }); -}); - -export default router;