use api.updateBlacklist instead of the same route

This commit is contained in:
mst 2024-11-26 15:15:30 +03:00
parent 008407b2f2
commit ea1b6f9bc6

View file

@ -2,7 +2,7 @@
{% block _title %}Blacklist{% endblock %}
{% set blacklist_link = 'active' %}
{% block _content %}
<form hx-post="{{ url_for('admin.blacklist') }}" hx-target="#response-container" hx-swap="none">
<form hx-put="{{ url_for('api.updateBlacklist') }}" hx-target="#response-container" hx-swap="none">
<input type="hidden" name="action" value="update_word_blacklist">
<div class="form-group mb-3">
<label class="form-label" for="blacklist_cat"><h2 id="blacklist" class="fw-normal">Word blacklist</h2></label>
@ -15,4 +15,4 @@
</button>
</div>
</form>
{% endblock %}
{% endblock %}