Skip to content

Commit

Permalink
docs(components/form): Fix method case in action
Browse files Browse the repository at this point in the history
  • Loading branch information
machour authored Jan 12, 2023
1 parent a80a62d commit bf2f0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit bf2f0bf

Please sign in to comment.