Agenda refactor
This commit is contained in:
parent
d9c78d8125
commit
60e82eb535
@ -27,8 +27,8 @@ export async function getInfomaniakCalDAVClient(
|
||||
password: string
|
||||
): Promise<WebDAVClient> {
|
||||
// Infomaniak CalDAV base URL (from Infomaniak sync assistant)
|
||||
// Base URL is https://sync.infomaniak.com, CalDAV endpoint is accessed via /caldav path
|
||||
const baseUrl = 'https://sync.infomaniak.com';
|
||||
// The actual CalDAV endpoint is at /caldav path
|
||||
const baseUrl = 'https://sync.infomaniak.com/caldav';
|
||||
|
||||
const client = createClient(baseUrl, {
|
||||
username: email,
|
||||
@ -48,8 +48,8 @@ export async function discoverInfomaniakCalendars(
|
||||
try {
|
||||
const client = await getInfomaniakCalDAVClient(email, password);
|
||||
|
||||
// List all calendars using PROPFIND on /caldav path
|
||||
const items = await client.getDirectoryContents('/caldav');
|
||||
// List all calendars using PROPFIND on root
|
||||
const items = await client.getDirectoryContents('/');
|
||||
|
||||
const calendars: CalDAVCalendar[] = [];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user