todos work

This commit is contained in:
2023-09-13 17:09:09 +02:00
committed by Hannes Körber
parent 6a6c62d736
commit 838263b091
9 changed files with 667 additions and 116 deletions

View File

@@ -147,7 +147,12 @@ pub fn router(state: AppState) -> Router {
.route(
"/:id/todo/:id/undone",
get(trip_todo_undone).post(trip_todo_undone_htmx),
),
)
.route("/:id/todo/:id/edit", post(trip_todo_edit))
.route("/:id/todo/:id/edit/save", post(trip_todo_edit_save))
.route("/:id/todo/:id/edit/cancel", post(trip_todo_edit_cancel))
.route("/:id/todo/new", post(trip_todo_new))
.route("/:id/todo/:id/delete", post(trip_todo_delete)),
)
.nest(
(&TopLevelPage::Inventory.path()).into(),