notification.js 322 B

1234567891011
  1. import api from "src/api";
  2. export const getMyUnreadNotifications = async () => {
  3. const { data } = await api.get("/notification/my/unread");
  4. return data.payload;
  5. };
  6. export const markNotificationAsRead = async (sendId) => {
  7. const { data } = await api.patch(`/notification/${sendId}/read`);
  8. return data.payload;
  9. };