From 4e5ae6b15752c0a2a98b3414c5b88e0df43af4e4 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 13 May 2022 22:49:12 +0700 Subject: all: refactor the HTTP API for zone.d Previously, the the HTTP API for creating and deleting zone file is by passing the zone file name in path of URL. This changes move the parameter name to POST body when creating new zone file and in the DELETE query when deleting zone file. --- httpd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httpd.go') diff --git a/httpd.go b/httpd.go index 4ae5a60..f62e228 100644 --- a/httpd.go +++ b/httpd.go @@ -39,7 +39,7 @@ const ( apiHostsd = "/api/hosts.d" apiHostsdRR = "/api/hosts.d/rr" - apiZone = "/api/zone.d/:name" + apiZone = "/api/zone.d" apiZoneRRType = "/api/zone.d/:name/rr/:type" ) -- cgit v1.3