Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,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