diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webserver_main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index 834a5df..f504cc7 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -12,10 +12,10 @@ #include <webassets.hpp> #include <memory> #include <string> +#include "redfish.hpp" #include <crow/app.h> #include <boost/asio.hpp> #include <systemd/sd-daemon.h> -#include "redfish.hpp" constexpr int defaultPort = 18080; @@ -41,6 +41,8 @@ void setup_socket(crow::Crow<Middlewares...>& app) { int main(int argc, char** argv) { auto io = std::make_shared<boost::asio::io_service>(); + crow::PersistentData::session_store = + std::make_shared<crow::PersistentData::SessionStore>(); crow::App<crow::PersistentData::Middleware, crow::TokenAuthorization::Middleware, crow::SecurityHeadersMiddleware> |