From 12ce7cbb5059fca2e72c0e1b7b89ff3fd65e8bd4 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 15 Dec 2022 18:31:08 -0500 Subject: [PATCH] mail: Fix POST for mail --- goathacks/templates/mail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goathacks/templates/mail.html b/goathacks/templates/mail.html index 7bbd6d6..e25143b 100644 --- a/goathacks/templates/mail.html +++ b/goathacks/templates/mail.html @@ -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");