diff options
author | Johannes Zellner <johannes@cloudron.io> | 2018-05-17 15:13:20 +0200 |
---|---|---|
committer | Johannes Zellner <johannes@cloudron.io> | 2018-05-17 15:13:20 +0200 |
commit | c407a3267364ab593f824b0843c79f69aa0b7371 (patch) | |
tree | fe17aa463d53757ca79c52594c9f507eb634f34a | |
parent | 92e8e57fc593c351c960b92bbcf9e0b7d7b95ea9 (diff) | |
download | Surfer-c407a3267364ab593f824b0843c79f69aa0b7371.tar.gz Surfer-c407a3267364ab593f824b0843c79f69aa0b7371.tar.zst Surfer-c407a3267364ab593f824b0843c79f69aa0b7371.zip |
Remove commented route
-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 | ||