feat: working data download and indexing
This commit is contained in:
13
src/lib/fetch.mjs
Normal file
13
src/lib/fetch.mjs
Normal file
@@ -0,0 +1,13 @@
|
||||
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',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user