redirect to index.html
This commit is contained in:
parent
8fd7bfa6cf
commit
723765af73
1 changed files with 3 additions and 0 deletions
3
index.js
3
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue