mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 14:23:59 -07:00
listmoons should return empty array not empty object
This commit is contained in:
parent
c0eef435ca
commit
fa8d837814
1 changed files with 1 additions and 1 deletions
|
@ -1627,7 +1627,7 @@ public:
|
|||
_controlPlane.Get("/moon", [&](const httplib::Request &req, httplib::Response &res) {
|
||||
std::vector<World> moons(_node->moons());
|
||||
|
||||
auto out = json::object();
|
||||
auto out = json::array();
|
||||
for (auto i = moons.begin(); i != moons.end(); ++i) {
|
||||
json mj;
|
||||
_moonToJson(mj, *i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue