mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 07:23:13 +00:00
11 lines
312 B
TypeScript
11 lines
312 B
TypeScript
|
|
import { apiGet } from "@/api/api";
|
||
|
|
import {
|
||
|
|
notificationFeedSchema,
|
||
|
|
type NotificationFeed,
|
||
|
|
} from "@/domain/notifications/types/notification-feed";
|
||
|
|
|
||
|
|
export const notificationsApi = {
|
||
|
|
feed: async (): Promise<NotificationFeed> =>
|
||
|
|
notificationFeedSchema.parse(await apiGet<unknown>("notifications")),
|
||
|
|
};
|