From b0652fecd8fc0b430e0f95e5036cddb8f5589820 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sun, 15 Dec 2024 12:30:30 -0500 Subject: [PATCH] path fix --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 7aeb243..4cf5dbd 100644 --- a/main.js +++ b/main.js @@ -19,7 +19,7 @@ app.use('/node_modules', express.static('node_modules')); // shell interface -app.get('/shell', (req, res) => { +app.get('/', (req, res) => { res.sendFile('shell.html', { root: path.join(__dirname, 'HTML') }); }); @@ -49,7 +49,7 @@ app.ws('/shell-ws', (ws, req) => { }); -app.get('/', (req, res) => res.end()); +app.get('*', (req, res) => res.end()); app.listen(PORT, '0.0.0.0', () => console.log('server listening on http://localhost:' + PORT)); \ No newline at end of file