Load shopping list from server on app startup

This commit is contained in:
hulthe committed 2025-12-20 20:35:54 +01:00
1 parent 8059ab7b85
commit 22f829f579
10 files changed
+1503 -1697

No files matched your search

+2 -13
View File
@@ -1,8 +1,9 @@
#[macro_use]
extern crate rocket;
use std::{ops::Deref, sync::Mutex};
use std::sync::Mutex;
use inkopslista_lib::{Item, ItemData};
use rocket::{serde::json::Json, State};
use serde::{Deserialize, Serialize};
@@ -59,15 +60,3 @@ fn rocket() -> _ {
struct MockDb {
pub list: Vec<Item>,
}
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
struct Item {
pub name: String,
pub data: ItemData,
}
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
struct ItemData {
pub checked: bool,
}