|
|
@ -167,6 +167,8 @@ async fn main() -> std::io::Result<()> { |
|
|
|
fn init_yopa() -> YopaStoreWrapper { |
|
|
|
fn init_yopa() -> YopaStoreWrapper { |
|
|
|
let mut store = Storage::new(); |
|
|
|
let mut store = Storage::new(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
|
|
|
|
// Seed the store with some dummy data for view development
|
|
|
|
// Seed the store with some dummy data for view development
|
|
|
|
use yopa::model; |
|
|
|
use yopa::model; |
|
|
|
use yopa::DataType; |
|
|
|
use yopa::DataType; |
|
|
@ -288,6 +290,7 @@ fn init_yopa() -> YopaStoreWrapper { |
|
|
|
}], |
|
|
|
}], |
|
|
|
}) |
|
|
|
}) |
|
|
|
.unwrap(); |
|
|
|
.unwrap(); |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
web::Data::new(tokio::sync::RwLock::new(store)) |
|
|
|
web::Data::new(tokio::sync::RwLock::new(store)) |
|
|
|
} |
|
|
|
} |
|
|
|