From 2676c2679cbfa40aabde0ba17027cb24aabbef36 Mon Sep 17 00:00:00 2001 From: androiddrew Date: Thu, 4 Jan 2018 16:16:27 -0500 Subject: [PATCH] fixed interceptor --- .gitignore | 1 + src/app.service.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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