delete sendMail

This commit is contained in:
Owen Rees
2023-11-27 09:21:16 +01:00
parent d56d81a227
commit 58f5af502e
-21
View File
@@ -1,21 +0,0 @@
const sendMail = async ({
email,
subject,
message,
}: Record<string, string>) => {
const data = {
email: email,
subject: subject,
message: message,
};
return await fetch("/api/send-mail", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
});
};
export default sendMail;