/// <reference types="../../.compose/types.d.ts" />
export async function main({ fetch }) {
const result = await fetch("https://api.example.com/submit", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer token123",
},
body: {
name: "John Doe",
email: "john@example.com",
},
});
return result;
}