From 29c35a301b66f0bc7fe2fb102ac2548ca9b522c9 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 22 May 2019 03:01:20 -0400 Subject: updated index template --- assets/tmpl/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'assets') diff --git a/assets/tmpl/index.html b/assets/tmpl/index.html index a1fe1ab..a8f7484 100644 --- a/assets/tmpl/index.html +++ b/assets/tmpl/index.html @@ -36,7 +36,7 @@ foo_barrington https://example3.com/twtxt.txt 2019-05-01T15:59:39.000Z

Query by mention:

$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt'
-foo    https://example.com/twtxt.txt    2019-02-26T11:06:44.000Z    @ Hey!! Are you still working on that project?
+foo https://example.com/twtxt.txt 2019-02-26T11:06:44.000Z @<foo_barrington https://example3.com/twtxt.txt> Hey!! Are you still working on that project?

Query by tag:

$ curl '{{.URL}}/api/plain/tags/programming'
 foo    https://example.com/twtxt.txt    2019-03-01T09:31:02.000Z    I love #programming!
@@ -48,16 +48,16 @@ foobar https://example2.com/twtxt.txt 2019-05-13T12:46:20.000Z It's bee
$ curl '{{.URL}}/api/plain/users'
 foo_barrington    https://example3.com/twtxt.txt    2018-11-21T18:31:00.000Z
 ...
-

Add new user:

-
$ curl -X POST '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt&nickname=foo_barrington'
-OK
+

Add new user by submitting a POST request. If both variables are not used, or the user already exists in this registry, the server will respond with 400 Bad Request

+
$ curl -X POST '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt&nickname=foo_barrington'
+200 OK
Instance Owner: {{.Owner}}
Mail: {{.Mail}}
-- cgit 1.4.1-2-gfad0