diff options
| author | Shulhan <ms@kilabit.info> | 2022-05-16 02:15:37 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-05-16 02:15:37 +0700 |
| commit | 11b83e218c699f581507959f40b2ef0f27131a74 (patch) | |
| tree | cf96933e0dcc14ce5f6cb4c8da716a2312e1d0a0 | |
| parent | 1f210cf3f11c5da5d410cf031f382727ac7b184b (diff) | |
| download | rescached-11b83e218c699f581507959f40b2ef0f27131a74.tar.xz | |
all: fix comment regarding HTTP path on HTTP handlers
| -rw-r--r-- | httpd.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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=<string>&type=<string>&record=<base64 json> +// DELETE /api/zone.d/rr?zone=<string>&type=<string>&record=<base64 json> // // Parameters, // |
