Skip to content

Commit

Permalink
more places
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad committed Jan 3, 2025
1 parent a90bfcd commit 5838091
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions loco-gen/src/templates/scaffold/api/controller.t
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub fn routes() -> Routes {
.prefix("api/{{file_name | plural}}/")
.add("/", get(list))
.add("/", post(add))
.add(":id", get(get_one))
.add(":id", delete(remove))
.add(":id", put(update))
.add(":id", patch(update))
.add("{id}", get(get_one))
.add("{id}", delete(remove))
.add("{id}", put(update))
.add("{id}", patch(update))
}
8 changes: 4 additions & 4 deletions loco-gen/src/templates/scaffold/html/controller.t
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ pub fn routes() -> Routes {
.add("/", get(list))
.add("/", post(add))
.add("new", get(new))
.add(":id", get(show))
.add(":id/edit", get(edit))
.add(":id", delete(remove))
.add(":id", post(update))
.add("{id}", get(show))
.add("{id}/edit", get(edit))
.add("{id}", delete(remove))
.add("{id}", post(update))
}
10 changes: 5 additions & 5 deletions loco-gen/src/templates/scaffold/htmx/controller.t
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ pub fn routes() -> Routes {
.add("/", get(list))
.add("/", post(add))
.add("new", get(new))
.add(":id", get(show))
.add(":id/edit", get(edit))
.add(":id", delete(remove))
.add(":id", put(update))
.add(":id", patch(update))
.add("{id}", get(show))
.add("{id}/edit", get(edit))
.add("{id}", delete(remove))
.add("{id}", put(update))
.add("{id}", patch(update))
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ pub fn routes() -> Routes {
.prefix("api/movies/")
.add("/", get(list))
.add("/", post(add))
.add(":id", get(get_one))
.add(":id", delete(remove))
.add(":id", put(update))
.add(":id", patch(update))
.add("{id}", get(get_one))
.add("{id}", delete(remove))
.add("{id}", put(update))
.add("{id}", patch(update))
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ pub fn routes() -> Routes {
.add("/", get(list))
.add("/", post(add))
.add("new", get(new))
.add(":id", get(show))
.add(":id/edit", get(edit))
.add(":id", delete(remove))
.add(":id", post(update))
.add("{id}", get(show))
.add("{id}/edit", get(edit))
.add("{id}", delete(remove))
.add("{id}", post(update))
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ pub fn routes() -> Routes {
.add("/", get(list))
.add("/", post(add))
.add("new", get(new))
.add(":id", get(show))
.add(":id/edit", get(edit))
.add(":id", delete(remove))
.add(":id", put(update))
.add(":id", patch(update))
.add("{id}", get(show))
.add("{id}/edit", get(edit))
.add("{id}", delete(remove))
.add("{id}", put(update))
.add("{id}", patch(update))
}

0 comments on commit 5838091

Please sign in to comment.