diff --git a/contributors.yml b/contributors.yml index b41c081b37..21c299fad4 100644 --- a/contributors.yml +++ b/contributors.yml @@ -103,6 +103,7 @@ - lukerSpringTree - m-shojaei - Manc +- machour - manzano78 - marc2332 - markivancho diff --git a/docs/components/form.md b/docs/components/form.md index 32602ab5e0..2907e688f9 100644 --- a/docs/components/form.md +++ b/docs/components/form.md @@ -132,12 +132,12 @@ The method will be available on [`request.method`][requestmethod] inside the rou }} action={async ({ request, params }) => { switch (request.method) { - case "put": { + case "PUT": { let formData = await request.formData(); let name = formData.get("projectName"); return fakeUpdateProject(name); } - case "delete": { + case "DELETE": { return fakeDeleteProject(params.id); } default: {