| 353 | } |
| 354 | |
| 355 | void WsPanelServer::AddHttpGetRouter(const std::string &path, |
| 356 | std::function<void(const std::string& path, http::web_request &req, http::web_response &rep)>&& cbk) { |
| 357 | server_->bind<http::verb::get>(path, [=, this](http::web_request &req, http::web_response &rep) { |
| 358 | cbk(path, req, rep); |
| 359 | }, aop_log{}); |
| 360 | } |
| 361 | |
| 362 | void WsPanelServer::AddHttpPostRouter(const std::string& path, |
| 363 | std::function<void(const std::string& path, http::web_request &req, http::web_response &rep)>&& cbk) { |
nothing calls this directly
no outgoing calls
no test coverage detected