| 1160 | }; |
| 1161 | |
| 1162 | void StartREST(const std::any& context) |
| 1163 | { |
| 1164 | for (const auto& up : uri_prefixes) { |
| 1165 | auto handler = [context, up](HTTPRequest* req, const std::string& prefix) { return up.handler(context, req, prefix); }; |
| 1166 | RegisterHTTPHandler(up.prefix, false, handler); |
| 1167 | } |
| 1168 | } |
| 1169 | |
| 1170 | void InterruptREST() |
| 1171 | { |
no test coverage detected