diff options
-rwxr-xr-x | server.js | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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 |
36 | function welcomePage(req, res, next) { | 36 | function 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 | ||
43 | var rootFolder = path.resolve(__dirname, process.argv[2] || 'files'); | 41 | var rootFolder = path.resolve(__dirname, process.argv[2] || 'files'); |
44 | 42 | ||