Add very rudimentary frontend crate

I accidentally pushed the dependency in main.rs :(
This commit is contained in:
Lennart
2023-09-07 18:56:52 +02:00
parent 5ee509b7bc
commit 4b26a7ee61

View File

@@ -0,0 +1,10 @@
use actix_web::{
web::{self, Data},
HttpResponse,
};
use rustical_store::calendar::CalendarStore;
use tokio::sync::RwLock;
pub fn configure_frontend<C: CalendarStore>(cfg: &mut web::ServiceConfig, store: Data<RwLock<C>>) {
cfg.app_data(store);
}