You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
436 B

5 years ago
#pragma once
#include <data.hpp>
5 years ago
#include <json.hpp>
#include <web_server.hpp>
class Application {
HttpServer http_server;
data dat;
5 years ago
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<HttpsServer> https_server = nullptr;
static Application &get(const json &config);
int run();
};