summaryrefslogtreecommitdiffstats
path: root/server/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.cpp')
-rw-r--r--server/src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp
index d5fcd42..b0a9938 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -105,8 +105,9 @@ auto real_main(std::span<char const*> args) -> exit_status
105 l.info("Loading situations finished in {}", dur_load); 105 l.info("Loading situations finished in {}", dur_load);
106 106
107 auto handler = routemon::api::handler{l, std::move(pub)}; 107 auto handler = routemon::api::handler{l, std::move(pub)};
108 auto http_server = 108 auto http_server = routemon::srv::server{
109 routemon::srv::server{l, std::move(lsel), std::move(handler)}; 109 l, config.http_server, std::move(lsel), std::move(handler)
110 };
110 http_server.spawn(ioc); 111 http_server.spawn(ioc);
111 ioc.run(); 112 ioc.run();
112 113