export default {
async email(message, env, ctx) {
const response = await fetch('https://api.domain.tld', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({email:message}),
});
if (!response.ok) {}
const data = await response.json();
}
}
export default {
async email(message, env, ctx) {
const response = await fetch('https://api.domain.tld', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({email:message}),
});
if (!response.ok) {}
const data = await response.json();
}
}