8 lines
242 B
TypeScript
8 lines
242 B
TypeScript
import axios from 'axios'
|
|
axios.defaults.baseURL = 'https://api.example.com';
|
|
axios.defaults.headers.common['Authorization'] = 'token';
|
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
|
|
|
|
|
|
export default axios |