From ef692fd4f8d4aae45042a3b9acf75afe22b1376b Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 11 Oct 2021 21:19:01 +0200 Subject: [PATCH] [mirotalksfu] - fix 404 page not found --- app/src/Server.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index bb52e57..5b13a81 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -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 // ####################################################