change startup log
This commit is contained in:
parent
93ed914eb2
commit
3f7b723311
@ -41,6 +41,8 @@ export default class Server {
|
|||||||
route.handle(req, res, next);
|
route.handle(req, res, next);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Log the registered routes
|
||||||
console.log(`Registered ${this.routes.length} routes`);
|
console.log(`Registered ${this.routes.length} routes`);
|
||||||
for (const route of this.routes) {
|
for (const route of this.routes) {
|
||||||
console.log(` - ${route.getMethod().toUpperCase()} ${route.getPath()}`);
|
console.log(` - ${route.getMethod().toUpperCase()} ${route.getPath()}`);
|
||||||
@ -53,7 +55,7 @@ export default class Server {
|
|||||||
|
|
||||||
// Start listening on the specified port
|
// Start listening on the specified port
|
||||||
this.server.listen(this.port, () => {
|
this.server.listen(this.port, () => {
|
||||||
console.log(`Server listening on port ${this.port}`);
|
console.log(`Server listening on http://localhost:${this.port}`);
|
||||||
this.postInit();
|
this.postInit();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user