update
This commit is contained in:
16
reader/src/api.js
Normal file
16
reader/src/api.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import axios from "axios";
|
||||
|
||||
const API_BASE_URL = "https://api.med.tomastm.com";
|
||||
const RESOURCES_BASE_URL = "https://resources.med.tomastm.com";
|
||||
|
||||
export const apiInstance = axios.create({
|
||||
baseURL: API_BASE_URL,
|
||||
timeout: 1000,
|
||||
headers: { Origin: "https://med.tomastm.com" },
|
||||
});
|
||||
|
||||
export const resourcesInstance = axios.create({
|
||||
baseURL: RESOURCES_BASE_URL,
|
||||
timeout: 1000,
|
||||
headers: { Origin: "https://med.tomastm.com" },
|
||||
});
|
||||
Reference in New Issue
Block a user