Add API channel deletion endpoint

This commit is contained in:
2022-08-14 00:01:00 +01:00
parent b6d229bbd2
commit 81708ef490
4 changed files with 67 additions and 6 deletions

View File

@@ -23,8 +23,9 @@
</td>
<td>
<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-delete="{% url 'threshold_irc_network_channel' net channel.name %}"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}", "Content-Type": "application/json"}'
hx-delete="{% url 'threshold_irc_network_channel_json' net %}"
hx-vals='{"channel": "{{ channel.name }}"}'
hx-target="#channels"
hx-swap="outerHTML"
class="button is-danger is-small">