import axios from "axios";
import FormData from "form-data";

const API_URL = "https://hopp.zikor.pl/api/v1";
export async function listOrders() {
  const response = await fetch(`${API_URL}/orders/get/all`);
  const data = await response.json();
  if (!response.ok) {
    throw new Error(response.toString());
  }
  return data;
}
