6 lines
269 B
TypeScript
6 lines
269 B
TypeScript
import { apiGet } from "./axios";
|
|
import type { NotificationItem } from "../types/notifications";
|
|
|
|
export const listNotifications = (studyId: string, params?: Record<string, any>) =>
|
|
apiGet<NotificationItem[]>(`/api/v1/studies/${studyId}/notifications`, { params });
|