Skip to content

Commit

Permalink
adding back the body for axios
Browse files Browse the repository at this point in the history
  • Loading branch information
ATNoblis committed Aug 29, 2024
1 parent 973f82a commit 68ce9f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/axiosConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import axios, { AxiosInstance } from 'axios'

const axiosInstance: AxiosInstance = axios.create()
const axiosInstance: AxiosInstance = axios.create({
baseURL: '/api/v1/',
headers: {
'Content-Type': 'application/json',
},
// withCredentials: true,
})

export default axiosInstance

0 comments on commit 68ce9f5

Please sign in to comment.