rename mkcalendar method

This commit is contained in:
Lennart
2024-06-30 20:15:10 +02:00
parent 56876decd0
commit eda4cea4e6
2 changed files with 6 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ struct MkcalendarRequest {
set: PropElement<MkcolCalendarProp>,
}
pub async fn route_mkcol_calendar<A: CheckAuthentication, C: CalendarStore + ?Sized>(
pub async fn route_mkcalendar<A: CheckAuthentication, C: CalendarStore + ?Sized>(
path: Path<(String, String)>,
body: String,
auth: AuthInfoExtractor<A>,

View File

@@ -86,9 +86,11 @@ pub fn configure_dav<A: CheckAuthentication, C: CalendarStore + ?Sized>(
web::method(Method::DELETE)
.to(route_delete::<A, CalendarResource<C>>),
)
.route(mkcalendar_method().to(
calendar::methods::mkcalendar::route_mkcol_calendar::<A, C>,
)),
.route(
mkcalendar_method().to(
calendar::methods::mkcalendar::route_mkcalendar::<A, C>,
),
),
)
.service(
web::resource("/{event}")