aboutsummaryrefslogtreecommitdiff
path: root/httpd.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-05-13 22:49:12 +0700
committerShulhan <ms@kilabit.info>2022-05-14 01:22:48 +0700
commit4e5ae6b15752c0a2a98b3414c5b88e0df43af4e4 (patch)
tree4b53f10cc999d8512e353abc8fc46eb6b632b357 /httpd.go
parent20c3f80e7dfd9e453d757199beb2137c09a9f536 (diff)
downloadrescached-4e5ae6b15752c0a2a98b3414c5b88e0df43af4e4.tar.xz
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.
Diffstat (limited to 'httpd.go')
-rw-r--r--httpd.go2
1 files changed, 1 insertions, 1 deletions
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"
)