| 602 | } |
| 603 | |
| 604 | void MeasureManagerServer::unknown_endpoint(web::http::http_request& message) { |
| 605 | const std::string uri = toString(web::http::uri::decode(message.relative_uri().path())); |
| 606 | message.reply(web::http::status_codes::BadRequest, toWebJSON(fmt::format("Error, unknown path '{}'", uri))); |
| 607 | print_feedback(message, web::http::status_codes::NotFound); |
| 608 | } |
| 609 | |
| 610 | void MeasureManagerServer::handle_get(web::http::http_request message) { |
| 611 | const std::string uri = toString(web::http::uri::decode(message.relative_uri().path())); |