#pragma once #include #include #include class Application { HttpServer http_server; data dat; static void web_server_started(std::size_t port); static void secure_web_server_started(std::size_t port); Application() = delete; Application(const json &cfg); public: std::shared_ptr https_server = nullptr; static Application &get(const json &config); int run(); };