From ae97fbe0255432acc9dc77d74a562365e86009f8 Mon Sep 17 00:00:00 2001 From: Philipp Heckel <pheckel@datto.com> Date: Thu, 18 Nov 2021 13:14:55 -0500 Subject: [PATCH] Fix typo --- server/index.gohtml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/server/index.gohtml b/server/index.gohtml index a98ab62..6449eb0 100644 --- a/server/index.gohtml +++ b/server/index.gohtml @@ -60,14 +60,20 @@ <h2 id="publish" class="anchor">Publishing messages</h2> <p> - Publishing messages can be done via PUT or POST using. Topics are created on the fly by subscribing or publishing to them. + Publishing messages can be done via PUT or POST. Topics are created on the fly by subscribing or publishing to them. Because there is no sign-up, <b>the topic is essentially a password</b>, so pick something that's not easily guessable. </p> <p class="smallMarginBottom"> - Here's an example showing how to publish a message using <tt>curl</tt>: + Here's an example showing how to publish a message using <tt>curl</tt> (via POST): </p> <code> - curl -d "long process is done" ntfy.sh/mytopic + curl -d "Backup successful 😀" ntfy.sh/mytopic + </code> + <p class="smallMarginBottom"> + And another one using PUT: + </p> + <code> + echo -en "\u26A0\uFE0F Unauthorized login" | curl -sT- ntfy.sh/mytopic </code> <p class="smallMarginBottom"> Here's an example in JS with <tt>fetch()</tt> (see <a href="https://github.com/binwiederhier/ntfy/tree/main/examples">full example</a>): -- GitLab