summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 18:32:46 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 18:32:46 +1100
commitd1c90c8c09c8f3c724ac4425b14174358f8f2199 (patch)
tree54091f7ab9fd3daff949fbe29ad9235c9b403f4c /src
parentPremium tier 0 SKU from staging (diff)
downloadserver-d1c90c8c09c8f3c724ac4425b14174358f8f2199.tar.xz
Remove /api/-/monitorz
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/-/monitorz.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/api/routes/-/monitorz.ts b/src/api/routes/-/monitorz.ts
deleted file mode 100644
index 630a832b..00000000
--- a/src/api/routes/-/monitorz.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { Router, Response, Request } from "express";
-import { route } from "@fosscord/api";
-import { Session } from "@fosscord/util";
-import os from "os";
-
-const router = Router();
-
-router.get(
-	"/",
-	route({ right: "OPERATOR" }),
-	async (req: Request, res: Response) => {
-		return res.json({
-			load: os.loadavg(),
-			procUptime: process.uptime(),
-			sysUptime: os.uptime(),
-			memPercent: 100 - (os.freemem() / os.totalmem()) * 100,
-			sessions: await Session.count(),
-		});
-	},
-);
-
-export default router;