notify: added bash alias example

This commit is contained in:
eyjhb 2025-03-12 00:04:44 +01:00
parent 583583ae5f
commit d31149cfd0
Signed by: eyjhb
GPG key ID: 609F508E3239F920

View file

@ -236,6 +236,9 @@ def index():
</tbody> </tbody>
</table> </table>
<hr> <hr>
bash alias
<pre class="border"><code>notify() {{ curl "{CONFIG_URL}/notify/{token}" -g --data-urlencode "body=${{1:-}}"; }}</code></pre>
curl curl
<pre class="border"><code>curl "{CONFIG_URL}/notify" -H "Authorization: Bearer {token}"</code></pre> <pre class="border"><code>curl "{CONFIG_URL}/notify" -H "Authorization: Bearer {token}"</code></pre>
curl w/ specific body/title curl w/ specific body/title