Update WorldWeb.cpp
This commit is contained in:
parent
88a7e3b295
commit
7c04bc7e91
@ -133,6 +133,9 @@ void World::Web_worldhandle_reloadrules(const http::request<http::string_body>&
|
|||||||
res.set(http::field::content_type, "application/json");
|
res.set(http::field::content_type, "application/json");
|
||||||
boost::property_tree::ptree pt, json_tree;
|
boost::property_tree::ptree pt, json_tree;
|
||||||
|
|
||||||
|
std::istringstream json_stream(req.body());
|
||||||
|
boost::property_tree::read_json(json_stream, json_tree);
|
||||||
|
|
||||||
database.LoadRuleSets(true);
|
database.LoadRuleSets(true);
|
||||||
|
|
||||||
pt.put("success", 1);
|
pt.put("success", 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user