Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c407a326
authored
May 17, 2018
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove commented route
1 parent
92e8e57f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
server.js
server.js
View file @
c407a32
...
@@ -35,10 +35,8 @@ router.get ('/api/healthcheck', function (req, res) { res.status(200).send();
...
@@ -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
// welcome screen in case / does not serve up any file yet
function
welcomePage
(
req
,
res
,
next
)
{
function
welcomePage
(
req
,
res
,
next
)
{
if
(
req
.
path
!==
'/'
)
return
next
();
if
(
req
.
path
!==
'/'
)
return
next
();
res
.
status
(
200
).
sendFile
(
path
.
join
(
__dirname
,
'/frontend/welcome.html'
));
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'
);
var
rootFolder
=
path
.
resolve
(
__dirname
,
process
.
argv
[
2
]
||
'files'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment