From: Johannes Zellner Date: Thu, 17 May 2018 13:13:20 +0000 (+0200) Subject: Remove commented route X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git;a=commitdiff_plain;h=c407a3267364ab593f824b0843c79f69aa0b7371 Remove commented route --- 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(); // welcome screen in case / does not serve up any file yet 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')); }); var rootFolder = path.resolve(__dirname, process.argv[2] || 'files');