1
0

Add birthday support for mobile calendar

This commit is contained in:
2025-07-18 14:12:57 +02:00
parent ddb3c682f5
commit b7e8d1c921
5 changed files with 575 additions and 65 deletions

View File

@@ -34,6 +34,15 @@ class CalendarService {
return requestUtil.delete(`${this.endpoint}/events/${eventId}`, { user });
}
// Get contact birthdays for a specific month
async getContactBirthdaysForMonth(year, month, user) {
let url = `${this.endpoint}/birthdays/${year}/${month}`;
if (user) {
url += `?user=${encodeURIComponent(user)}`;
}
return requestUtil.get(url);
}
// Health check
async healthCheck() {
return requestUtil.get('/api/health');