| 948 | }; |
| 949 | |
| 950 | void 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 | |
| 958 | void InterruptREST() |
| 959 | { |
no test coverage detected