diff --git a/.gitignore b/.gitignore index 764a5aa..5969b71 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ dist/*.js dist/*.css +.idea diff --git a/src/app.service.js b/src/app.service.js index e7b0ce4..fede15e 100644 --- a/src/app.service.js +++ b/src/app.service.js @@ -4,7 +4,7 @@ axios.defaults.baseURL = 'https://api.fullstackweekly.com' // To avoid adding the token to every request we make to a service we can // instead use an interceptor -axios.interceptor.request.use(function (config) { +axios.interceptors.request.use(function (config) { // added for when the code is running on a server for serverside rendering if (typeof window === 'undefined') { return config