From 30d92cf12101aa41f75ea6593a9a7099abab4ab8 Mon Sep 17 00:00:00 2001 From: Frost Lord <51778028+Frost-Lord@users.noreply.github.com> Date: Tue, 10 Oct 2023 09:38:47 +1100 Subject: [PATCH] Update dashboard.js --- api/dashboard.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/dashboard.js b/api/dashboard.js index 4e8dc4d..015c0bb 100644 --- a/api/dashboard.js +++ b/api/dashboard.js @@ -5,7 +5,6 @@ const { bandwidth } = require('../middleware/bandwidth'); const os = require('node:os'); const pidusage = require('pidusage'); - module.exports = (router, client, checkAuth) => { router.post("/admin", checkAuth, async (req, res) => { const processStats = await pidusage(process.pid); @@ -46,7 +45,6 @@ module.exports = (router, client, checkAuth) => { "networkInterfaces": os.networkInterfaces(), }, } - res.send(data); }); -}; \ No newline at end of file +};