MCPcopy Create free account
hub / github.com/ElementsProject/elements / StartREST

Function StartREST

src/rest.cpp:950–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948};
949
950void StartREST(const std::any& context)
951{
952 for (const auto& up : uri_prefixes) {
953 auto handler = [context, up](HTTPRequest* req, const std::string& prefix) { return up.handler(context, req, prefix); };
954 RegisterHTTPHandler(up.prefix, false, handler);
955 }
956}
957
958void InterruptREST()
959{

Callers 1

AppInitServersFunction · 0.85

Calls 1

RegisterHTTPHandlerFunction · 0.85

Tested by

no test coverage detected