Inject server configuration instead of using a singleton

This commit is contained in:
2019-06-16 11:49:04 +02:00
parent e9509fb117
commit d00fc33197
7 changed files with 24 additions and 31 deletions

View File

@@ -5,8 +5,10 @@
int main(int argc, char ** argv)
{
ServerConfiguration serverConfiguration;
Logger logger;
HttpServer httpServer(logger);
HttpServer httpServer(logger, serverConfiguration);
httpServer.Execute();
return 0;