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
uzyn and kaplanelad authored Nov 5, 2024
1 parent 999f12a commit 0f79a27
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 0f79a27

Please sign in to comment.