Add version field to /status HTTP JSON endpoint
This commit is contained in:
1 parent
accb4b3686
commit
e24c3a55e8
1 file changed
+3
@@ -69,6 +69,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#include "ReflectorClient.h"
|
||||
#include "TGHandler.h"
|
||||
#include "TrunkLink.h"
|
||||
#include <version/SVXREFLECTOR.h>
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
@@ -1643,6 +1644,8 @@ 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