redirect to index.html

This commit is contained in:
biglyderv 2025-04-21 00:12:24 -04:00
parent 8fd7bfa6cf
commit 723765af73
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -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;