Skip to content

Commit

Permalink
hold returns changeset in json, not xml
Browse files Browse the repository at this point in the history
per #180 it doesn't really make sense for the hold api endpoint
to return the entire config XML
  • Loading branch information
nebulous committed Nov 27, 2023
1 parent a8a7986 commit 6842efa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions infinitude
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,8 @@ any '/api/:zone_id/hold' => sub {
$store->set('systems.json', $xml->_as_json());
$store->set(changes => 'true');

$c->render(text=>$xml, format=>'xml');

#$c->render(json=>$setting);
#$c->render(text=>$xml, format=>'xml');
$c->render(json=>$setting);
};

sub api_stat {
Expand Down

1 comment on commit 6842efa

@electricessence
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.