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 // ####################################################