Skip to content

Commit

Permalink
Merge branch 'upgrade/fix-mistakes' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuseduardomedeiros committed May 23, 2024
2 parents 78eefef + b762cd3 commit 23b13fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/services/api.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import axios from 'axios';
import getEnv from '@/utils/env'


import getEnv from '@/utils/env';

const token = localStorage.getItem('token');

const api = axios.create({
baseURL: getEnv('VUE_APP_BASE_API'),
baseURL: getEnv('BASE_API'),
});

if (token) { api.defaults.headers.common['Authorization'] = token; }
if (token) {
api.defaults.headers.common['Authorization'] = token;
}

export { api }
export { api };

0 comments on commit 23b13fd

Please sign in to comment.