Skip to content

Commit

Permalink
docs(components/form): Fix method case in action (#9893)
Browse files Browse the repository at this point in the history
Closes #9891
  • Loading branch information
machour authored Jan 12, 2023
1 parent 5ee585f commit bbaca1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
- lukerSpringTree
- m-shojaei
- Manc
- machour
- manzano78
- marc2332
- markivancho
Expand Down
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 bbaca1a

Please sign in to comment.