chore: change get-data exports

export a function for the specific opensky data, re-org code
This commit is contained in:
2018-11-02 14:09:25 -07:00
parent 96482e9044
commit aca5c03388
3 changed files with 26 additions and 32 deletions

View File

@@ -1,13 +1,9 @@
import axios from 'axios';
const api = 'https://opensky-network.org/api';
export default axios.create({
baseURL: api,
timeout: 3000,
responseType: 'json',
headers: {
'X-Custom-Header': 'foobar',
'Content-Type': 'application/json; charset=utf-8',
},
});