diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:42:40 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:42:40 +1100 |
commit | 6084833cb7866114eba37380159d0bce2c8ecd2c (patch) | |
tree | 795173ca5de0c1ab0c71466396c03c92fd0db32e /src | |
parent | Remove Discord oauth login support (diff) | |
download | server-6084833cb7866114eba37380159d0bce2c8ecd2c.tar.xz |
Remove /policies/instance/stats
Diffstat (limited to 'src')
-rw-r--r-- | src/api/routes/policies/instance/stats.ts | 21 |
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; |