Profile edit (WIP)

This commit is contained in:
Greg Burri 2024-11-15 14:47:10 +01:00
parent 405aa68526
commit 327b2d0a5b
15 changed files with 174 additions and 46 deletions

View file

@ -39,7 +39,11 @@ pub fn main() -> Result<(), JsValue> {
let id = id.parse::<i64>().unwrap(); // TODO: remove unwrap.
console_log!("recipe edit ID: {}", id);
handles::edit_recipe(&document);
handles::recipe_edit(&document);
}
["user", "edit"] => {
handles::user_edit(&document);
}
_ => (),
}