import axios from "axios";
/// POST REQUEST
addCity(data)
.then((res) => {
console.log(res);
alert("success");
});
export function addCity(data = {}) {
// console.log(data);
// {name: "mysore", population: 11111, country: "India"}
return axios.post("URL", {
name: data.name,
population: data.population,
country: data.country
});
}