This commit is contained in:
Iliyan Angelov
2025-11-28 20:24:58 +02:00
parent b5698b6018
commit cf97df9aeb
135 changed files with 7641 additions and 357 deletions

View File

@@ -81,6 +81,11 @@ const notificationService = {
skip?: number;
limit?: number;
}) => {
// Don't make API call if user is not authenticated
const token = localStorage.getItem('token');
if (!token) {
throw new Error('Not authenticated');
}
return apiClient.get<{ status: string; data: Notification[] }>('/notifications/my-notifications', { params });
},