Answers for "axios x-api-key for all"

0

axios x-api-key for all

const instance = axios.create({
    baseURL: "https://api.hello.com",
    headers: {
      "X-API-KEY": "hello"
    }
  })
  const res = await instance.get<{}, AxiosResponse<string>>("/world");
Posted by: Guest on April-16-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language