Skip to content

Commit

Permalink
Scaffolded HTML update method should be POST (#963)
Browse files Browse the repository at this point in the history
Co-authored-by: Elad Kaplan <[email protected]>
  • Loading branch information
2 people authored and jondot committed Nov 9, 2024
1 parent 01fbba3 commit bfe0096
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions loco-gen/src/templates/scaffold/html/controller.t
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,5 @@ pub fn routes() -> Routes {
.add(":id", get(show))
.add(":id/edit", get(edit))
.add(":id", delete(remove))
.add(":id", put(update))
.add(":id", patch(update))
.add(":id", post(update))
}

0 comments on commit bfe0096

Please sign in to comment.