| 707 | } |
| 708 | |
| 709 | void DataStorageController::SendJsonResponse(httplib::Response& res, int status, const nlohmann::json& body) |
| 710 | { |
| 711 | res.status = status; |
| 712 | res.set_content(body.dump(), "application/json"); |
| 713 | } |
| 714 | |
| 715 | void DataStorageController::SendErrorResponse(httplib::Response& res, int status, const nlohmann::json& error) |
| 716 | { |
no outgoing calls
no test coverage detected