feat: add getNotificationDetail API function and integrate it into DetailNotification component for enhanced notification handling

This commit is contained in:
2025-12-11 17:07:06 +07:00
parent e23215b6c1
commit 13255f9713
3 changed files with 242 additions and 92 deletions

View File

@@ -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 };