mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 18:32:29 +01:00
Remove /policies/instance/stats
This commit is contained in:
parent
bf420aac32
commit
061a03eced
@ -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;
|
Loading…
Reference in New Issue
Block a user