about summary refs log tree commit diff stats
path: root/assets/tmpl/index.html
diff options
context:
space:
mode:
authorBenjamin Morrison <ben@gbmor.dev>2021-10-21 21:41:44 -0400
committerGitHub <noreply@github.com>2021-10-21 21:41:44 -0400
commit57dfee62f097eed8f5e4a3429d7ea850ce07c570 (patch)
tree5ee99ab38e00c41190f82bef4b08a298c914f329 /assets/tmpl/index.html
parentd2cbd7b2dca8b981f886c490d0aed205f0530c31 (diff)
parentdd3d87bd97e41c77eea270812d338139fd87b9fc (diff)
downloadgetwtxt-57dfee62f097eed8f5e4a3429d7ea850ce07c570.tar.gz
Merge pull request #15 from getwtxt/delete-user
Delete user endpoint with admin pass
Diffstat (limited to 'assets/tmpl/index.html')
-rw-r--r--assets/tmpl/index.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/tmpl/index.html b/assets/tmpl/index.html
index 0318810..1e4b6f5 100644
--- a/assets/tmpl/index.html
+++ b/assets/tmpl/index.html
@@ -43,6 +43,10 @@
       <pre><code>$ curl '{{.URL}}/api/plain/version'
 getwtxt {{.Vers}}
         </code></pre>
+     <p>Delete a user by issuing a <code>DELETE</code> request to the <code>/api/admin/users</code> endpoint. This
+     must include the <code>X-Auth</code> header with the password specified during configuration.</p>
+     <pre><code>$ curl -X DELETE -H 'X-Auth: mypassword' '{{.URL}}/api/admin/users?url=https://foo.ext/twtxt.txt'
+200 OK</code></pre>
       <p>Add new user by submitting a <code>POST</code> request to the <code>/api/plain/users</code> endpoint.
         If both <code>?url=X</code> and <code>?nickname=X</code> are not passed, or the user already exists in
         this registry, you will receive <code>400 Bad Request</code> as a response. If you are unsure what went