Switch event representation such that properties can be extracted

This commit is contained in:
Lennart
2023-09-20 16:40:38 +02:00
parent 94500d25d6
commit 0c71fec7fc
6 changed files with 63 additions and 13 deletions

View File

@@ -53,7 +53,7 @@ pub async fn get_event<A: CheckAuthentication, C: CalendarStore>(
Ok(HttpResponse::Ok()
.insert_header(("ETag", event.get_etag()))
.body(event.as_ics().to_string()))
.body(event.get_ics()))
}
pub async fn put_event<A: CheckAuthentication, C: CalendarStore>(