Remove useless verbs in web api urls
This commit is contained in:
parent
559ed139aa
commit
315626b3ed
7 changed files with 100 additions and 94 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue