fix url ticket
This commit is contained in:
@@ -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