Remove useless verbs in web api urls

This commit is contained in:
Greg Burri 2025-03-31 21:24:20 +02:00
parent 559ed139aa
commit 315626b3ed
7 changed files with 100 additions and 94 deletions

View file

@ -29,7 +29,7 @@ impl ShoppingList {
if self.is_local {
Ok(vec![]) // TODO
} else {
Ok(request::get("shopping_list/get_list", ()).await?)
Ok(request::get("shopping_list", ()).await?)
}
}
@ -38,7 +38,7 @@ impl ShoppingList {
todo!();
} else {
request::patch(
"shopping_list/set_checked",
"shopping_list/checked",
ron_api::Value {
id: item_id,
value: is_checked,