log to console where server is running
This commit is contained in:
parent
24fdcdb707
commit
4b4c2104c0
1 changed files with 5 additions and 1 deletions
|
|
@ -273,4 +273,8 @@ app.get('/api/v1/waypoints', async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
app.listen(8080);
|
||||
// start express server
|
||||
const listener = app.listen(8080, () => {
|
||||
const port = listener.address().port;
|
||||
console.log(`Server running at http://127.0.0.1:${port}`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue