fix: add root routes for index.html (Apache strips base prefix on proxy)
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 3s
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 3s
This commit is contained in:
parent
1d082d9016
commit
1110e95e49
@ -84,7 +84,8 @@ app.delete(['/api/text', BASE + '/api/text'], async (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// ── Serve index.html ──────────────────────────────────────────────────────
|
// ── Serve index.html ──────────────────────────────────────────────────────
|
||||||
app.get([BASE, BASE + '/', BASE + '/index.html'], (req, res) => {
|
// Apache strips the BASE prefix before proxying, so handle both forms
|
||||||
|
app.get(['/', '/index.html', BASE, BASE + '/', BASE + '/index.html'], (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, 'index.html'));
|
res.sendFile(path.join(__dirname, 'index.html'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user