Move well-known routes to main::app.rs

This commit is contained in:
Lennart
2025-01-26 14:08:16 +01:00
parent 79d0b4f967
commit 33b7f748b8
3 changed files with 2 additions and 12 deletions

View File

@@ -25,10 +25,6 @@ pub mod addressbook;
pub mod error;
pub mod principal;
pub fn configure_well_known(cfg: &mut web::ServiceConfig, carddav_root: String) {
cfg.service(web::redirect("/carddav", carddav_root).permanent());
}
pub fn configure_dav<AP: AuthenticationProvider, A: AddressbookStore, S: SubscriptionStore>(
cfg: &mut web::ServiceConfig,
auth_provider: Arc<AP>,