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");