Add auth config

This commit is contained in:
Lennart
2023-09-07 18:53:12 +02:00
parent 7f5df657d2
commit 5ee509b7bc
3 changed files with 29 additions and 11 deletions

View File

@@ -25,8 +25,10 @@ pub fn configure_well_known(cfg: &mut web::ServiceConfig, caldav_root: String) {
}
pub fn configure_dav<C: CalendarStore>(
pub fn configure_dav<A: CheckAuthentication, C: CalendarStore>(
cfg: &mut web::ServiceConfig,
prefix: String,
auth: Arc<A>,
store: Arc<RwLock<C>>,
) {
let propfind_method = || Method::from_str("PROPFIND").unwrap();