Remove hard-coded /dav paths

This commit is contained in:
Lennart
2023-09-05 17:06:46 +02:00
parent 6b6788ec98
commit b84001469a
4 changed files with 33 additions and 18 deletions

View File

@@ -41,7 +41,6 @@ pub fn configure_dav<C: CalendarStore>(
}
});
// cfg.app_data(store)
cfg.app_data(Data::new(Context { prefix, store }))
.service(
web::resource("{path:.*}")
@@ -51,7 +50,7 @@ pub fn configure_dav<C: CalendarStore>(
)
.service(
web::resource("")
.route(web::method(propfind_method()).to(root::route_propfind_root))
.route(web::method(propfind_method()).to(root::route_propfind_root::<C>))
.wrap(auth.clone()),
)
.service(