10 أسطر
388 B
TypeScript
10 أسطر
388 B
TypeScript
import { apiEndpoints } from "@/lib/api/endpoints";
|
|
import { fetchWithAuth } from "@/lib/auth/client";
|
|
import type { NotificationsResponse } from "@/types/api";
|
|
|
|
export async function listPlatformNotifications(
|
|
params: Record<string, string | number | boolean | null | undefined> = {},
|
|
) {
|
|
return fetchWithAuth<NotificationsResponse>(apiEndpoints.notifications.superAdmin(params));
|
|
}
|