import axios from 'axios';

export const getOrders =() => {
  return axios.get(`http://localhost:8081/api/orders`);
}

export const editOrder = (order) => {
  return axios.put(`http://localhost:8081/api/orders/${order.id}`, order)
}
