remove prefix parameter

This commit is contained in:
Lennart
2024-10-04 18:16:25 +02:00
parent 2aa0e173c8
commit 8ed0c3ec2a
2 changed files with 1 additions and 7 deletions

View File

@@ -31,7 +31,6 @@ pub fn configure_well_known(cfg: &mut web::ServiceConfig, caldav_root: String) {
pub fn configure_dav<AP: AuthenticationProvider, C: CalendarStore + ?Sized>(
cfg: &mut web::ServiceConfig,
prefix: String,
auth_provider: Arc<AP>,
store: Arc<RwLock<C>>,
) {

View File

@@ -45,12 +45,7 @@ pub fn make_app<CS: CalendarStore + ?Sized>(
// .wrap(Logger::new("[%s] %r"))
.wrap(NormalizePath::trim())
.service(web::scope("/caldav").configure(|cfg| {
rustical_caldav::configure_dav(
cfg,
"/caldav".to_string(),
auth_provider.clone(),
cal_store.clone(),
)
rustical_caldav::configure_dav(cfg, auth_provider.clone(), cal_store.clone())
}))
.service(
web::scope("/carddav")