Skip to content

Commit

Permalink
Add root path
Browse files Browse the repository at this point in the history
  • Loading branch information
jruhlender committed Dec 30, 2020
1 parent 6c548d0 commit 8c1263c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ app.get('/healthz', (req, res) => {
});

app.get('*', (req, res) => {
res.status(404).sendFile('index.html');
res.status(404).sendFile('index.html', { root: __dirname });
});

app.listen(8080, () => console.log('App listening on port 8080'));

0 comments on commit 8c1263c

Please sign in to comment.