- import api from "src/api";
- export const getMyUnreadNotifications = async () => {
- const { data } = await api.get("/notification/my/unread");
- return data.payload;
- };
- export const markNotificationAsRead = async (sendId) => {
- const { data } = await api.patch(`/notification/${sendId}/read`);
- return data.payload;
- };
|