what if I don't have a real html form at all with my Svelte frontend, just a collection of some input boxes and a button where I want to submit those inputs to one of the actions exported from +page.server.js file, i.e edit?
<button onclick={(e) => {
const response = await fetch("?/edit", {
method: "PUT",
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(formData),
});
}} >Confirm</button>
I tried it, but I've got 405 Method Not Allowed although the edit action does have PUT as its method