[#69] added secret link for calendars (#284)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
Co-authored-by: Benoit TELLIER <btellier@linagora.com>
This commit is contained in:
Camille Moussu
2025-11-07 08:30:47 +01:00
committed by GitHub
parent 0647be551f
commit daed6d97ed
6 changed files with 187 additions and 22 deletions
+11
View File
@@ -128,3 +128,14 @@ export async function updateAclCalendar(calLink: string, request: string) {
});
return response;
}
export async function getSecretLink(calLink: string, reset: boolean) {
const response = await api
.get(`calendar/api${calLink}/secret-link?shouldResetLink=${reset}`, {
headers: {
Accept: "application/json, text/plain, */*",
},
})
.json();
return response as { secretLink: string };
}