fix url ticket
This commit is contained in:
@@ -50,17 +50,19 @@ export const getOrderDetails = async (id: string) => {
|
||||
|
||||
export const getTickets = async (id: string) => {
|
||||
const { data } = await axios.get<TicketsResponseType>(
|
||||
`/public/ticket/ref/${id}`,
|
||||
`/public/chat/ref/${id}`,
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const addTicket = async (id: string, params: AddTicketType) => {
|
||||
const { data } = await axios.post(`/public/ticket/ref/${id}`, params);
|
||||
const { data } = await axios.post(`/public/chat/ref/${id}`, params);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getOrderStats = async () => {
|
||||
const { data } = await axios.get<OrderStatsResponseType>(`/public/orders/stats`);
|
||||
const { data } = await axios.get<OrderStatsResponseType>(
|
||||
`/public/orders/stats`,
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -57,12 +57,12 @@ export const getRequestDetails = async (id: string) => {
|
||||
|
||||
export const getTickets = async (id: string) => {
|
||||
const { data } = await axios.get<TicketsResponseType>(
|
||||
`/public/ticket/ref/${id}`,
|
||||
`/public/chat/ref/${id}`,
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const addTicket = async (id: string, params: AddTicketType) => {
|
||||
const { data } = await axios.post(`/public/ticket/ref/${id}`, params);
|
||||
const { data } = await axios.post(`/public/chat/ref/${id}`, params);
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user