-router.get('/', function (req, res) { res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html')); });
+function welcomePage(req, res, next) {
+ if (req.path !== '/') return next();
+
+ res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html'));
+}
+// router.get('/', function (req, res) { res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html')); });