Skip to content

Commit c2cd194

Browse files
committed
Fixed server.js file
1 parent 9a4c5be commit c2cd194

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ app.use('/login', (req, res) => {
1010
});
1111
});
1212

13-
app.listen(8080, () => console.log('API is running on http://localhost:8080/login'));
13+
const PORT = process.env.PORT || 8080;
14+
15+
app.listen(PORT, () => console.log(`API is running on http://localhost:${PORT}/login`));

0 commit comments

Comments
 (0)