Skip to content

Commit

Permalink
Fix docs: Use patch method for update
Browse files Browse the repository at this point in the history
  • Loading branch information
greyblake committed Dec 1, 2024
1 parent 26454d0 commit 6b04e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs-site/content/docs/getting-started/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ pub fn routes() -> Routes {
.add("/", post(add))
.add("/:id", get(get_one))
.add("/:id", delete(remove))
.add("/:id", post(update))
.add("/:id", patch(update))
}
```
Expand Down Expand Up @@ -676,7 +676,7 @@ pub fn routes() -> Routes {
// .add("/", get(list))
// .add("/:id", get(get_one))
// .add("/:id", delete(remove))
// .add("/:id", post(update))
// .add("/:id", patch(update))
}
```
Expand Down

0 comments on commit 6b04e38

Please sign in to comment.