import axios from "axios"

// Create the axios object
const repo = axios.create({
    baseURL: window.location.hostname === 'localhost' ? "http://localhost:9000/api" : "/api",
});

repo.defaults.headers.post["access-control-allow-origin"] = "*";

export default repo;
