change startup log

This commit is contained in:
Lee 2023-11-20 14:29:10 +00:00
parent 93ed914eb2
commit 3f7b723311

@ -41,6 +41,8 @@ export default class Server {
route.handle(req, res, next);
});
}
// Log the registered routes
console.log(`Registered ${this.routes.length} routes`);
for (const route of this.routes) {
console.log(` - ${route.getMethod().toUpperCase()} ${route.getPath()}`);
@ -53,7 +55,7 @@ export default class Server {
// Start listening on the specified 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();
});
}