log to console where server is running

This commit is contained in:
liamcottle
2024-03-23 09:57:31 +13:00
parent 24fdcdb707
commit 4b4c2104c0

View File

@ -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}`);
});