Skip to content

Commit

Permalink
defaultUrl as alternate record
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioBeneditto committed Mar 2, 2022
1 parent 2355638 commit 412102f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ app.use('/favicon.ico', express.static('favicon.ico'));
// Points to API URL, based on platform (local or Heroku)
app.get('/', (req, res) => {
res.json({
'newUrl': req.get('host') + '/api',
'newUrl': req.get('newHost') + '/api',
'defaultUrl': req.headers.host + '/api'
})
})
Expand Down

0 comments on commit 412102f

Please sign in to comment.