ticket with order item

This commit is contained in:
hamid zarghami
2026-01-31 15:03:00 +03:30
parent a0d099b50f
commit 2ced4666c8
3 changed files with 25 additions and 6 deletions
+5 -2
View File
@@ -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;
};