import axiosInstance from "./axiosConfig" export interface PizzaOrderRequestDto { customerId: string pizzas: string[] address: string } export interface PizzaOrder { id: string customerId: string pizzas: string[] // You might want to define a more specific type for Pizza if available address: string totalPrice: number orderDate: string } export const orderService = { async createOrder(request: PizzaOrderRequestDto): Promise { const response = await axiosInstance.post("/order/new", request) return response.data }, async getOrderById(id: string): Promise { const response = await axiosInstance.get(`/order/${id}`) return response.data }, async getAllOrders(): Promise { const response = await axiosInstance.get("/order/all") return response.data }, }