Inject server configuration instead of using a singleton
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user