aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2018-05-17 15:13:20 +0200
committerJohannes Zellner <johannes@cloudron.io>2018-05-17 15:13:20 +0200
commitc407a3267364ab593f824b0843c79f69aa0b7371 (patch)
treefe17aa463d53757ca79c52594c9f507eb634f34a
parent92e8e57fc593c351c960b92bbcf9e0b7d7b95ea9 (diff)
downloadSurfer-c407a3267364ab593f824b0843c79f69aa0b7371.tar.gz
Surfer-c407a3267364ab593f824b0843c79f69aa0b7371.tar.zst
Surfer-c407a3267364ab593f824b0843c79f69aa0b7371.zip
Remove commented route
-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