Hello, I found your article very useful. But, what if the API use the key in headers, not parameters? This is the example how I get data from the API:
const BASE_URL = ".....";
const ENDPOINTS = "/type=movie"; // There is more than one endpoint, it's dynamic
const API_KEY = {
headers: {
"key": "value";
}
};
axios.get(`${BASE_URL}${ENDPOINTS}`, API_KEY).then(........