From 723765af73677e2766aeed36a2fafa8aed7b992c Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 21 Apr 2025 00:12:24 -0400 Subject: [PATCH] redirect to index.html --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 3122a49..714c063 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,9 @@ app.use(express.json()) app.set('trust proxy', true) //app.use(express.static('static')); +app.get('/', async function (req, res) { + res.redirect(302,'/index.html'); +}); app.post('/', async function (req, res) { let ip = req.headers['X-Real-IP'] || req.ip;