export function onRequest(context) {
if(context.request.method !== 'POST') {
return new Response('Not allowed', { status: 405 }
}
try {
return new Response('OK', { status: 200 });
} catch(e) {
throw new Error('Error')
}
}
export function onRequest(context) {
if(context.request.method !== 'POST') {
return new Response('Not allowed', { status: 405 }
}
try {
return new Response('OK', { status: 200 });
} catch(e) {
throw new Error('Error')
}
}