MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / AddHttpGetRouter

Method AddHttpGetRouter

src/render_panel/network/ws_panel_server.cpp:355–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected