Move version field from /status to /config HTTP endpoint

This commit is contained in:
Audric committed 2026-03-28 23:04:35 +01:00
1 parent e24c3a55e8
commit c82827080c
1 file changed
+1 -2
+1 -2
View File
@@ -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)