From 43377959ce12fef129f14fbd62abce18156afc92 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 12 Feb 2022 10:18:16 +0100 Subject: [PATCH] [mirotalksfu] - fix --- 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 8659c42..4a6f6c9 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -173,11 +173,6 @@ app.get(['/privacy'], (req, res) => { res.sendFile(view.privacy); }); -// not match any of page before, so 404 not found -app.get('*', function (req, res) { - res.sendFile(view.notFound); -}); - // #################################################### // API // #################################################### @@ -238,6 +233,11 @@ app.post(['/api/v1/join'], (req, res) => { }); }); +// not match any of page before, so 404 not found +app.get('*', function (req, res) { + res.sendFile(view.notFound); +}); + // #################################################### // NGROK // ####################################################