From b3ce7e9f09c59e5016130c5a578a2465329fbfb8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 9 Jan 2026 21:49:42 +0000 Subject: [PATCH] Fix: Move os module import to top of file Co-authored-by: mblanke <9078342+mblanke@users.noreply.github.com> --- server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.js b/server.js index fda79b0..fb11137 100644 --- a/server.js +++ b/server.js @@ -5,6 +5,7 @@ const axios = require('axios'); const { NodeSSH } = require('node-ssh'); const fs = require('fs'); const path = require('path'); +const os = require('os'); const app = express(); const PORT = process.env.PORT || 3001; @@ -231,8 +232,6 @@ app.get('/api/unifi/devices', async (req, res) => { // System info endpoint app.get('/api/system/info', async (req, res) => { try { - const os = require('os'); - res.json({ success: true, data: {