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 | 061a03eced06138ae807587bd309f67193f9e764 (patch) | |
tree | a9431ed055b56b56913d6ae39bb00566af288c37 /src/api/routes/policies | |
parent | Remove Discord oauth login support (diff) | |
download | server-061a03eced06138ae807587bd309f67193f9e764.tar.xz |
Remove /policies/instance/stats
Diffstat (limited to 'src/api/routes/policies')
-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; |