feat: refactored front end
This commit is contained in:
13
front/MyINPulse-front/src/services/api.ts
Normal file
13
front/MyINPulse-front/src/services/api.ts
Normal file
@ -0,0 +1,13 @@
|
||||
// file: src/services/api.js
|
||||
|
||||
import axios from "axios";
|
||||
|
||||
// Creating an instance for axios to be used by the token interceptor service
|
||||
const instance = axios.create({
|
||||
baseURL: `${import.meta.env.VITE_BE_API_URL}/api`,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
|
||||
export default instance;
|
Reference in New Issue
Block a user