mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
Add very rudimentary frontend crate
I accidentally pushed the dependency in main.rs :(
This commit is contained in:
10
crates/frontend/src/lib.rs
Normal file
10
crates/frontend/src/lib.rs
Normal 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);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user