Move version field from /status to /config HTTP endpoint
This commit is contained in:
1 parent
e24c3a55e8
commit
c82827080c
1 file changed
+1
-2
@@ -1541,6 +1541,7 @@ void Reflector::httpRequestReceived(Async::HttpServerConnection *con,
|
||||
if (req.target == "/config")
|
||||
{
|
||||
Json::Value cfg_json(Json::objectValue);
|
||||
cfg_json["version"] = SVXREFLECTOR_VERSION;
|
||||
|
||||
// Local prefixes
|
||||
std::string local_prefix_str;
|
||||
@@ -1644,8 +1645,6 @@ void Reflector::httpRequestReceived(Async::HttpServerConnection *con,
|
||||
return;
|
||||
}
|
||||
|
||||
m_status["version"] = SVXREFLECTOR_VERSION;
|
||||
|
||||
// Build trunk status fresh on each request (live state)
|
||||
Json::Value trunks(Json::objectValue);
|
||||
for (auto* link : m_trunk_links)
|
||||
|
||||
Reference in new issue
Block a user