[mirotalk] - fix 404 page not found

This commit is contained in:
Miroslav Pejic
2021-10-11 21:20:33 +02:00
parent 65effc2d6d
commit f2962a163c
+5 -5
View File
@@ -160,11 +160,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'));
});
/**
MiroTalk API v1
The response will give you a entrypoint / Room URL for your meeting.
@@ -210,6 +205,11 @@ function getMeetingURL(host) {
// end of MiroTalk API v1
// not match any of page before, so 404 not found
app.get('*', function (req, res) {
res.sendFile(path.join(__dirname, '../../', 'public/view/404.html'));
});
/**
* You should probably use a different stun-turn server
* doing commercial stuff, also see: