[#7] added MOVE support for changing calendar for event + missing tests for this PR

This commit is contained in:
Camille Moussu
2025-08-28 13:08:10 +02:00
parent 6669eeb456
commit a2b0ab32b7
8 changed files with 785 additions and 50 deletions
+11 -1
View File
@@ -16,9 +16,19 @@ export async function putEvent(event: CalendarEvent) {
return response;
}
export async function moveEvent(event: CalendarEvent) {
const response = await api(`dav${event.URL}`, {
method: "MOVE",
headers: {
destination: event.URL,
},
});
return response;
}
export async function deleteEvent(eventURL: string) {
const response = await api(`dav${eventURL}`, {
method: "DELETE",
}).json();
});
return response;
}