From 0ef729256f33586129323667c871cb54f4dca8c9 Mon Sep 17 00:00:00 2001 From: pepper Date: Tue, 19 Jan 2021 19:55:17 -0500 Subject: [PATCH] added api key --- src/components/actions/API.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/actions/API.js b/src/components/actions/API.js index 52dcb34..c3080d4 100644 --- a/src/components/actions/API.js +++ b/src/components/actions/API.js @@ -2,6 +2,8 @@ import axios from "axios"; // Axios create, exporting callAPI + export const callAPI = axios.create({ baseURL: process.env.REACT_APP_API_ADDRESS, + headers: {'Authorization': "Api-Key " + process.env.REACT_APP_API_KEY} });