Files
cod-fe/src/api/notification.jsx

31 lines
724 B
JavaScript

import { SendRequest } from '../components/Global/ApiRequest';
const getAllNotification = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: `notification?${queryParams.toString()}`,
});
return response.data;
};
const getNotificationById = async (id) => {
const response = await SendRequest({
method: 'get',
prefix: `notification/${id}`,
});
return response.data;
};
const getNotificationDetail = async (id) => {
const response = await SendRequest({
method: 'get',
prefix: `notification/${id}`,
});
return response.data;
};
export { getAllNotification, getNotificationById, getNotificationDetail };