aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xserver.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/server.js b/server.js
index 5814539..f9dd4f5 100755
--- a/server.js
+++ b/server.js
@@ -35,10 +35,8 @@ router.get ('/api/healthcheck', function (req, res) { res.status(200).send();
35// welcome screen in case / does not serve up any file yet 35// welcome screen in case / does not serve up any file yet
36function welcomePage(req, res, next) { 36function welcomePage(req, res, next) {
37 if (req.path !== '/') return next(); 37 if (req.path !== '/') return next();
38
39 res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html')); 38 res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html'));
40} 39}
41// router.get('/', function (req, res) { res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html')); });
42 40
43var rootFolder = path.resolve(__dirname, process.argv[2] || 'files'); 41var rootFolder = path.resolve(__dirname, process.argv[2] || 'files');
44 42