From 11b83e218c699f581507959f40b2ef0f27131a74 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 16 May 2022 02:15:37 +0700 Subject: all: fix comment regarding HTTP path on HTTP handlers --- httpd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/httpd.go b/httpd.go index bd491ff..e91b038 100644 --- a/httpd.go +++ b/httpd.go @@ -829,7 +829,7 @@ func (srv *Server) apiHostsdGet(epr *libhttp.EndpointRequest) (resbody []byte, e // // Request format, // -// POST /hosts.d/rr +// POST /api/hosts.d/rr // content-type: application/x-www-form-urlencoded // // name=&domain=&value= @@ -916,7 +916,7 @@ func (srv *Server) apiHostsdRecordAdd(epr *libhttp.EndpointRequest) (resbody []b // // # Request // -// DELETE /hosts.d/record?name=&domain= +// DELETE /api/hosts.d/record?name=&domain= // // # Response // @@ -1097,7 +1097,7 @@ func (srv *Server) apiZonedDelete(epr *libhttp.EndpointRequest) (resb []byte, er // // # Request // -// POST /zone.d/rr +// POST /api/zone.d/rr // Content-Type: application/json // // { @@ -1233,7 +1233,7 @@ func (srv *Server) apiZonedRRAdd(epr *libhttp.EndpointRequest) (resb []byte, err // // # Request // -// DELETE /zone.d/rr?zone=&type=&record= +// DELETE /api/zone.d/rr?zone=&type=&record= // // Parameters, // -- cgit v1.3