Skip to content

Commit bbaca1a

Browse files
authored
docs(components/form): Fix method case in action (#9893)
Closes #9891
1 parent 5ee585f commit bbaca1a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
- lukerSpringTree
105105
- m-shojaei
106106
- Manc
107+
- machour
107108
- manzano78
108109
- marc2332
109110
- markivancho

docs/components/form.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ The method will be available on [`request.method`][requestmethod] inside the rou
132132
}}
133133
action={async ({ request, params }) => {
134134
switch (request.method) {
135-
case "put": {
135+
case "PUT": {
136136
let formData = await request.formData();
137137
let name = formData.get("projectName");
138138
return fakeUpdateProject(name);
139139
}
140-
case "delete": {
140+
case "DELETE": {
141141
return fakeDeleteProject(params.id);
142142
}
143143
default: {

0 commit comments

Comments
 (0)