refactor(serverlist): refactored to also show uptime and other info about the server

This commit is contained in:
2025-10-31 07:14:11 -05:00
parent d60c08a281
commit e1e659f9b1
8 changed files with 205 additions and 23 deletions

View File

@@ -1,10 +1,12 @@
import type { Express, Request, Response } from "express";
import allServerStats from "./routes/allServerStats.js";
import modules from "./routes/modules/moduleRoutes.js";
import settings from "./routes/settings/settingRoutes.js";
import stats from "./routes/stats.js";
export const setupSystemRoutes = (app: Express, basePath: string) => {
app.use(basePath + "/api/system/stats", stats);
app.use(basePath + "/api/system/allservers/stats", allServerStats);
app.use(
basePath + "/api/system/settings", // will pass bc system admin but this is just telling us we need this