summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:42:40 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:42:40 +1100
commit6084833cb7866114eba37380159d0bce2c8ecd2c (patch)
tree795173ca5de0c1ab0c71466396c03c92fd0db32e /src
parentRemove Discord oauth login support (diff)
downloadserver-6084833cb7866114eba37380159d0bce2c8ecd2c.tar.xz
Remove /policies/instance/stats
Diffstat (limited to 'src')
-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;