text: //getting API for showing all the data
  export const getPlacement = () => fetch("http://localhost:7000/").then(res => res.json())
  
  //getting API for inserting the data
  export const createPlacements = (todo) => fetch("http://localhost:7000/placements/create", {
    method: "POST",
    headers: {
      "Accept": "application/json",
      "Content-Type": "application/json"
    },
    body: JSON.stringify(todo)
  })  
  
  //getting API for updating specific data
  export const updatePlacement = (todo, id) => fetch(`http://localhost:7000/${id}`, {
    method: "POST",
    headers: {
      "Accept": "application/json",
      "Content-Type": "application/json"
    },
    body: JSON.stringify(todo)
  })  
  
  //getting API for getting specific data
  export const getPlacements = (id) => fetch(`http://localhost:7000/${id}`).then(res => res.json())