09f3e3cfdf
* Set the baseURL for ajax requests * Use async/await on AJAX calls * Add mix_public() cache generated asset cache busting * Move storage container into separate class * Fix some styling
18 lines
343 B
JavaScript
18 lines
343 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Lookup an airport from the server
|
|
*
|
|
* @param {String} icao
|
|
*/
|
|
export default async (icao) => {
|
|
let params = {
|
|
method: 'GET',
|
|
url: '/api/airports/' + icao + '/lookup',
|
|
};
|
|
|
|
const response = await axios(params);
|
|
console.log('lookup raw response: ', response);
|
|
return response.data;
|
|
};
|