caldav: Support MKCOL method

This commit is contained in:
Lennart K
2025-06-10 11:43:39 +02:00
parent b5f23b0f9b
commit 0dbc05345b
2 changed files with 52 additions and 12 deletions

View File

@@ -125,4 +125,11 @@ impl<C: CalendarStore, S: SubscriptionStore> AxumMethods for CalendarResourceSer
Box::pin(Service::call(&mut service, req))
})
}
fn mkcol() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>> {
Some(|state, req| {
let mut service = Handler::with_state(route_mkcalendar::<C, S>, state);
Box::pin(Service::call(&mut service, req))
})
}
}