From dd3d87bd97e41c77eea270812d338139fd87b9fc Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Thu, 21 Oct 2021 21:31:17 -0400 Subject: delete a user, new config option for admin pass. pass is bcrypt hashed on startup and not stored in plaintext. --- assets/tmpl/index.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'assets/tmpl/index.html') 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 @@
$ curl '{{.URL}}/api/plain/version'
 getwtxt {{.Vers}}
         
+

Delete a user by issuing a DELETE request to the /api/admin/users endpoint. This + must include the X-Auth header with the password specified during configuration.

+
$ curl -X DELETE -H 'X-Auth: mypassword' '{{.URL}}/api/admin/users?url=https://foo.ext/twtxt.txt'
+200 OK

Add new user by submitting a POST request to the /api/plain/users endpoint. If both ?url=X and ?nickname=X are not passed, or the user already exists in this registry, you will receive 400 Bad Request as a response. If you are unsure what went -- cgit 1.4.1-2-gfad0