fix(api): search use api

This commit is contained in:
zain94rif
2026-01-08 17:25:17 +07:00
parent e08eaaa43e
commit d5866ceae4
2 changed files with 49 additions and 2 deletions

View File

@@ -82,6 +82,15 @@ const resendChatAllUser = async (notificationId) => {
return response.data;
};
// Searching
const searchData = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: `notification?criteria=${queryParams}`,
});
return response.data;
};
export {
getAllNotification,
getNotificationById,
@@ -92,4 +101,5 @@ export {
resendNotificationToUser,
resendChatByUser,
resendChatAllUser,
searchData,
};