Return name of rule as deletion response.

This commit is contained in:
Kishore Nallan 2023-07-08 06:41:00 +05:30
parent f90eda277b
commit 9b8754b13d

View File

@ -2151,7 +2151,10 @@ bool del_analytics_rules(const std::shared_ptr<http_req>& req, const std::shared
return false;
}
res->set_200(R"({"ok": true})");
nlohmann::json res_json;
res_json["name"] = req->params["name"];
res->set_200(res_json.dump());
return true;
}