diff --git a/src/boot/axios.ts b/src/boot/axios.ts index bd96d99..54dc836 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -18,7 +18,7 @@ export default boot>(({ Vue, store }) => { axios.interceptors.request.use(config => { const session = store.state.user.session; if (session.token) { - config.headers = {'Authorization': 'Token ' + session.token}; + config.headers = {'Authorization': 'Bearer ' + session.token}; } return config; }); diff --git a/src/config.ts b/src/config.ts index 1a10c2c..8df1729 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ const config = { - baseURL: 'http://flaschengeist.local:5000' +baseURL: '/api' }; export default config;