stabilizec CMake
This commit is contained in:
7
main.cpp
7
main.cpp
@ -1,5 +1,7 @@
|
||||
#include "src/sdk.h"
|
||||
//
|
||||
#include <boost/json.hpp>
|
||||
#include <boost/json/src.hpp>
|
||||
#include <boost/asio/signal_set.hpp>
|
||||
#include <iostream>
|
||||
#include <mutex>
|
||||
@ -14,6 +16,7 @@ namespace
|
||||
namespace net = boost::asio;
|
||||
using namespace std::literals;
|
||||
namespace sys = boost::system;
|
||||
namespace json = boost::json;
|
||||
namespace http = boost::beast::http;
|
||||
using namespace std;
|
||||
using net::ip::tcp;
|
||||
@ -50,7 +53,9 @@ StringResponse HandleRequest(StringRequest&& req)
|
||||
config += buf;
|
||||
}
|
||||
|
||||
auto r = config;
|
||||
string_view config_ref {config.begin(), config.end()};
|
||||
|
||||
auto parsed_config = json::parse(config_ref);
|
||||
}
|
||||
else if (equal(k_MapsPattern.begin(),
|
||||
k_MapsPattern.end(),
|
||||
|
Reference in New Issue
Block a user