summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/api/routes/policies/instance/stats.ts21
1 files changed, 0 insertions, 21 deletions
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;