ticket with order item
This commit is contained in:
@@ -25,7 +25,10 @@ export const getTickets = async (orderId: string) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const addTicket = async (orderId: string, params: AddTicketType) => {
|
||||
const { data } = await axios.post(`/admin/ticket/order/${orderId}`, params);
|
||||
export const addTicket = async (ticketId: string, params: AddTicketType) => {
|
||||
const { data } = await axios.post(
|
||||
`/admin/ticket/order/item/${ticketId}`,
|
||||
params
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user