summary refs log tree commit diff
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
commitbf64200c8775f7530299c6f67c8d72491d5ec936 (patch)
treea36c8c42b59c700527ea01052704cb778a9c4834
parentPremium tier 0 SKU from staging (diff)
downloadserver-bf64200c8775f7530299c6f67c8d72491d5ec936.tar.xz
Remove /api/-/monitorz
-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;