diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-22 03:01:20 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-22 03:21:17 -0400 |
commit | 29c35a301b66f0bc7fe2fb102ac2548ca9b522c9 (patch) | |
tree | a6d3e62fa026b1dbb1454575aeb90a17183be996 /assets/tmpl/index.html | |
parent | e3a24e26be6eac0a976b0f267bfb83e18410a465 (diff) | |
download | getwtxt-29c35a301b66f0bc7fe2fb102ac2548ca9b522c9.tar.gz |
updated index template
Diffstat (limited to 'assets/tmpl/index.html')
-rw-r--r-- | assets/tmpl/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
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</co foo_barrington https://example3.com/twtxt.txt 2019-04-30T06:00:09.000Z I just built getwtxt, time to set it up!</code></pre> <p>Query by mention:</p> <pre><code>$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt' -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?</code></pre> +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?</code></pre> <p>Query by tag:</p> <pre><code>$ curl '{{.URL}}/api/plain/tags/programming' foo https://example.com/twtxt.txt 2019-03-01T09:31:02.000Z I love #programming!</code></pre> @@ -48,16 +48,16 @@ foobar https://example2.com/twtxt.txt 2019-05-13T12:46:20.000Z It's bee <pre><code>$ curl '{{.URL}}/api/plain/users' foo_barrington https://example3.com/twtxt.txt 2018-11-21T18:31:00.000Z ...</code></pre> - <p>Add new user:</p> - <pre><code>$ curl -X POST '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt&nickname=foo_barrington' -OK</code></pre> + <p>Add new user by submitting a <code>POST</code> request. If both variables are not used, or the user already exists in this registry, the server will respond with <code>400 Bad Request</code></p> + <pre><code>$ curl -X POST '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt&nickname=foo_barrington' +200 OK</code></pre> </div> <div id="info"> Instance Owner: {{.Owner}}<br /> Mail: {{.Mail}}<br /> </div> <div id="foot"> - powered by <a href="https://github.com/gbmor/getwtxt">getwtxt</a> + powered by <a href="https://github.com/getwtxt/getwtxt">getwtxt</a> </div> </div> </body> |