feat: add getNotificationDetail API function and integrate it into DetailNotification component for enhanced notification handling
This commit is contained in:
@@ -18,4 +18,13 @@ const getNotificationById = async (id) => {
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export { getAllNotification, getNotificationById };
|
||||
const getNotificationDetail = async (id) => {
|
||||
const response = await SendRequest({
|
||||
method: 'get',
|
||||
prefix: `notification/${id}`,
|
||||
});
|
||||
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export { getAllNotification, getNotificationById, getNotificationDetail };
|
||||
|
||||
Reference in New Issue
Block a user