Skip to content

Commit

Permalink
Scaffolded HTML update method should be POST
Browse files Browse the repository at this point in the history
  • Loading branch information
uzyn committed Nov 4, 2024
1 parent 2d49fd5 commit 92b2a26
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,7 +126,6 @@ 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 92b2a26

Please sign in to comment.