refresh token
This commit is contained in:
@@ -7,6 +7,14 @@ export const createAnnoncement = async (params: CreateAnnouncementType) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const updateAnnoncement = async (
|
||||
id: string,
|
||||
params: CreateAnnouncementType
|
||||
) => {
|
||||
const { data } = await axios.patch(`/announcements/${id}`, params);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getCustomerService = async (serviceId: string) => {
|
||||
const { data } = await axios.get(`/danak-services/${serviceId}/users`);
|
||||
return data;
|
||||
@@ -27,6 +35,11 @@ export const getAnnoncements = async (
|
||||
};
|
||||
|
||||
export const getAnnoncementDetail = async (id: string) => {
|
||||
const { data } = await axios.get(`/announcements/${id}`);
|
||||
const { data } = await axios.get(`/announcements/${id}/admin`);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const deleteAnnoncement = async (id: string) => {
|
||||
const { data } = await axios.delete(`/announcements/${id}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user