Skip to content

Commit ae97fbe

Browse files
author
Philipp Heckel
committed
Fix typo
1 parent 6d7fec5 commit ae97fbe

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

server/index.gohtml

+9-3
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,20 @@
6060

6161
<h2 id="publish" class="anchor">Publishing messages</h2>
6262
<p>
63-
Publishing messages can be done via PUT or POST using. Topics are created on the fly by subscribing or publishing to them.
63+
Publishing messages can be done via PUT or POST. Topics are created on the fly by subscribing or publishing to them.
6464
Because there is no sign-up, <b>the topic is essentially a password</b>, so pick something that's not easily guessable.
6565
</p>
6666
<p class="smallMarginBottom">
67-
Here's an example showing how to publish a message using <tt>curl</tt>:
67+
Here's an example showing how to publish a message using <tt>curl</tt> (via POST):
6868
</p>
6969
<code>
70-
curl -d "long process is done" ntfy.sh/mytopic
70+
curl -d "Backup successful 😀" ntfy.sh/mytopic
71+
</code>
72+
<p class="smallMarginBottom">
73+
And another one using PUT:
74+
</p>
75+
<code>
76+
echo -en "\u26A0\uFE0F Unauthorized login" | curl -sT- ntfy.sh/mytopic
7177
</code>
7278
<p class="smallMarginBottom">
7379
Here's an example in JS with <tt>fetch()</tt> (see <a href="https://github.com/binwiederhier/ntfy/tree/main/examples">full example</a>):

0 commit comments

Comments
 (0)