mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:52:24 +00:00
some preparations for WebDav Push
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
pub mod mkcalendar;
|
||||
pub mod post;
|
||||
pub mod report;
|
||||
|
||||
15
crates/caldav/src/calendar/methods/post.rs
Normal file
15
crates/caldav/src/calendar/methods/post.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use actix_web::{web::Data, web::Path, Responder};
|
||||
use rustical_store::{auth::User, CalendarStore};
|
||||
use tracing::instrument;
|
||||
use tracing_actix_web::RootSpan;
|
||||
|
||||
#[instrument(parent = root_span.id(), skip(store, root_span))]
|
||||
pub async fn route_post<C: CalendarStore + ?Sized>(
|
||||
path: Path<(String, String)>,
|
||||
body: String,
|
||||
user: User,
|
||||
store: Data<C>,
|
||||
root_span: RootSpan,
|
||||
) -> impl Responder {
|
||||
"asd"
|
||||
}
|
||||
Reference in New Issue
Block a user