Spaces:
Runtime error
Runtime error
merasabkuch
commited on
Update index.js
Browse files
index.js
CHANGED
@@ -24,6 +24,11 @@ const wss = new WebSocketServer({ noServer: true });
|
|
24 |
|
25 |
app.use(cors());
|
26 |
|
|
|
|
|
|
|
|
|
|
|
27 |
initialData = { devices: [], rooms: [], users: [] }; // Provide default empty data on error
|
28 |
let currentDeviceStates = {};
|
29 |
|
|
|
24 |
|
25 |
app.use(cors());
|
26 |
|
27 |
+
app.get('/', (req, res) => {
|
28 |
+
res.send('Hello, World!'); // Replace with any response you want
|
29 |
+
});
|
30 |
+
|
31 |
+
|
32 |
initialData = { devices: [], rooms: [], users: [] }; // Provide default empty data on error
|
33 |
let currentDeviceStates = {};
|
34 |
|