mirror of
https://github.com/axios/axios.git
synced 2026-04-11 02:11:50 +08:00
refactor: added listen callback function (#4096)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
parent
5affc9d08e
commit
1de70bd130
@ -135,6 +135,6 @@ server = http.createServer(function (req, res) {
|
||||
|
||||
const PORT = argv.p || 3000;
|
||||
|
||||
server.listen(PORT);
|
||||
|
||||
console.log("Examples running on " + PORT);
|
||||
server.listen(PORT, () => {
|
||||
console.log(`Examples running on ${PORT}`);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user