caldav: Refactor DELETE

This commit is contained in:
Lennart
2024-05-28 12:50:56 +02:00
parent 7f979ddd93
commit 5d8b67472a
3 changed files with 27 additions and 14 deletions

View File

@@ -60,7 +60,10 @@ pub fn configure_dav<A: CheckAuthentication, C: CalendarStore + ?Sized>(
.route(
mkcalendar_method().to(calendar::methods::mkcalendar::route_mkcol_calendar::<A, C>),
)
.route(web::method(Method::DELETE).to(calendar::methods::delete_calendar::<A, C>)),
.route(
web::method(Method::DELETE)
.to(calendar::methods::delete::route_delete_calendar::<A, C>),
),
)
.service(
web::resource("/{principal}/{calendar}/{event}")