From 6842efa288db834fa6b0b17aef11ad2a1a6a9536 Mon Sep 17 00:00:00 2001 From: nebulous Date: Mon, 27 Nov 2023 17:16:57 -0500 Subject: [PATCH] hold returns changeset in json, not xml per #180 it doesn't really make sense for the hold api endpoint to return the entire config XML --- infinitude | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infinitude b/infinitude index 31acaae..6bbfe96 100755 --- a/infinitude +++ b/infinitude @@ -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 {