upd: notifikasi
Deskripsi: - list notifikasi - tanda notifikasi - entiti user login NO Issues
This commit is contained in:
10
lib/api.ts
10
lib/api.ts
@@ -643,4 +643,14 @@ export const apiRegisteredToken = async (data: { user: string, token: string })
|
||||
export const apiUnregisteredToken = async (data: { user: string, token: string }) => {
|
||||
const response = await api.put(`/mobile/auth-token/`, data)
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const apiGetNotification = async ({ user, page }: { user: string, page?: number }) => {
|
||||
const response = await api.get(`mobile/home/notification?user=${user}&page=${page}`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const apiReadOneNotification = async (data: { user: string, id: string }) => {
|
||||
const response = await api.put(`/mobile/home/notification/`, data)
|
||||
return response.data;
|
||||
};
|
||||
Reference in New Issue
Block a user