feat: add API function to retrieve all notifications

This commit is contained in:
2025-11-18 19:55:11 +07:00
parent 34e38b3969
commit f4caac55e6
3 changed files with 768 additions and 232 deletions

9
src/api/notification.jsx Normal file
View File

@@ -0,0 +1,9 @@
import { SendRequest } from '../components/Global/ApiRequest';
export const getAllNotification = async () => {
const response = await SendRequest({
method: 'get',
prefix: 'notification',
});
return response.data;
};