mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 20:32:48 +00:00
remove prefix parameter
This commit is contained in:
@@ -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>>,
|
||||
) {
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user