// Process
#include <MyHandler.hpp>
#include <Launcher.hpp>
+#include <EventOperation.hpp>
void MyHandler::evRequest(anna::comm::ClientSocket& clientSocket, const anna::http::Request& request)
);
std::string body_content;
body_content.assign(body.getData(), body.getSize());
+ auto json_body = nlohmann::json::parse(body_content);
// Operation:
std::string response_content;
try {
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
- opOk = my_app.eventOperation(body_content, response_content);
+ opOk = my_app.eventOperation(EventOperation::json2piped(json_body), response_content);
} catch(RuntimeException &ex) {
ex.trace();
opOk = false;