mail: Fix POST for mail

This commit is contained in:
Cara Salter 2022-12-15 18:31:08 -05:00
parent 1afd9b6e2e
commit 12ce7cbb50
No known key found for this signature in database
GPG key ID: 90C66610C82B29CA

View file

@ -77,7 +77,7 @@
];
if((rec != "all" && window.confirm("Send test email?")) || (rec == "all" && window.confirm("Send email to {{NUM_HACKERS}} recipients?"))) {
fetch('/send', {method: 'POST', body: JSON.stringify(body), headers: headers}).then(async (res) => {
fetch('/admin/send', {method: 'POST', body: JSON.stringify(body), headers: headers}).then(async (res) => {
window.alert(await res.text());
}).catch((err) => {
window.alert("Error sending message - see console for details");