diff --git a/internal/gateway/ui/index.html b/internal/gateway/ui/index.html index e731afc..4be0e70 100644 --- a/internal/gateway/ui/index.html +++ b/internal/gateway/ui/index.html @@ -2720,7 +2720,9 @@ async function delTemplate(name) { if (!confirm(tFmt("tplConfirmDel", name))) return; try { - await api("/api/source_templates/" + encodeURIComponent(name), {}); + await api("/api/source_templates/" + encodeURIComponent(name), { + method: "DELETE", + }); toast(t("toastDelOk")); openTemplateModal(); } catch (e) { @@ -2816,8 +2818,9 @@ } async function delSource(name) { if (!confirm(tFmt("confirmDelSrc", name))) return; - await api("/api/sources/" + encodeURIComponent(name), { - }); + await api("/api/sources/" + encodeURIComponent(name), { + method: "DELETE", + }); toast(t("toastDelOk")); renderSources(); }