POSTing to a function results in no response
# workers-help
e
I'm using a form action to post to my function
Copy code
<form method="POST" action="/functions/send-email"
However Wrangler keeps erroring with "No response" My function is:
Copy code
export async function onRequest() {
  return Response.redirect('/')
}
Please tell me what I'm doing wrong
Ah sorry tag should be "Pages" not "Workers"
n
Shouldn't the action be
"/send-email"
and not
"/functions/send-email"
?
e
Well I never
thank you