refactor: Split off ServerInitializer.

This commit is contained in:
Ruben Verborgh
2020-12-07 22:33:37 +01:00
committed by Joachim Van Herwegen
parent b0ecf1c1d8
commit 04a91858c2
8 changed files with 55 additions and 48 deletions

View File

@@ -16,6 +16,7 @@ export class ExpressHttpServerFactory implements HttpServerFactory {
}
public startServer(port: number): Server {
this.logger.info(`Starting server at http://localhost:${port}/`);
return this.createApp().listen(port);
}