diff --git a/src/components/email-signup-form/index.tsx b/src/components/email-signup-form/index.tsx index f21a79b..a49c3d8 100644 --- a/src/components/email-signup-form/index.tsx +++ b/src/components/email-signup-form/index.tsx @@ -18,7 +18,7 @@ const EmailSignupForm = () => { setMessage(""); e.preventDefault(); - const endpoint = "https://api.uofthacks.com/12/email_list/add"; + const endpoint = "https://api.uofthacks.com/12/mail_list/add"; try { const response = await fetch(endpoint, { @@ -27,7 +27,7 @@ const EmailSignupForm = () => { "Content-Type": "application/json", }, body: JSON.stringify({ - user_email: email, + "user_email": email, }), });