mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
caldav: Rewrite of MKCALENDAR method
This commit is contained in:
@@ -34,7 +34,7 @@ pub fn configure_dav<A: CheckAuthentication, C: CalendarStore + ?Sized>(
|
||||
) {
|
||||
let propfind_method = || web::method(Method::from_str("PROPFIND").unwrap());
|
||||
let report_method = || web::method(Method::from_str("REPORT").unwrap());
|
||||
let mkcol_method = || web::method(Method::from_str("MKCOL").unwrap());
|
||||
let mkcalendar_method = || web::method(Method::from_str("MKCALENDAR").unwrap());
|
||||
|
||||
cfg.app_data(Data::new(CalDavContext {
|
||||
store: store.clone(),
|
||||
@@ -57,7 +57,9 @@ pub fn configure_dav<A: CheckAuthentication, C: CalendarStore + ?Sized>(
|
||||
web::resource("/{principal}/{calendar}")
|
||||
.route(report_method().to(calendar::methods::route_report_calendar::<A, C>))
|
||||
.route(propfind_method().to(handle_propfind::<A, CalendarResource<C>>))
|
||||
.route(mkcol_method().to(calendar::methods::route_mkcol_calendar::<A, C>))
|
||||
.route(
|
||||
mkcalendar_method().to(calendar::methods::mkcalendar::route_mkcol_calendar::<A, C>),
|
||||
)
|
||||
.route(web::method(Method::DELETE).to(calendar::methods::delete_calendar::<A, C>)),
|
||||
)
|
||||
.service(
|
||||
|
||||
Reference in New Issue
Block a user