[mirotalksfu] - fix 404 page not found

main
Miroslav Pejic 4 years ago
parent 31c9d16532
commit ef692fd4f8

@ -96,11 +96,6 @@ app.get('/join/*', (req, res) => {
}
});
// not match any of page before, so 404 not found
app.get('*', function (req, res) {
res.sendFile(path.join(__dirname, '../../', 'public/view/404.html'));
});
// ####################################################
// API
// ####################################################
@ -136,6 +131,11 @@ app.post(['/api/v1/meeting'], (req, res) => {
});
});
// not match any of page before, so 404 not found
app.get('*', function (req, res) {
res.sendFile(path.join(__dirname, '../../', 'public/view/404.html'));
});
// ####################################################
// NGROK
// ####################################################

Loading…
Cancel
Save