update ticket and fix bug
This commit is contained in:
@@ -4,6 +4,10 @@ export async function createTicket(data: any) {
|
||||
return await callAPI.post("/ticket/create", data).then((res) => res.data);
|
||||
}
|
||||
|
||||
export async function updateTicket(id:string,data: any) {
|
||||
return await callAPI.put(`/ticket/update/${id}`, data).then((res) => res.data);
|
||||
}
|
||||
|
||||
export async function getAllTickets(params: any) {
|
||||
return await callAPI.get("/ticket/all", { params }).then((res) => res.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user