phpvms/resources/js/admin/airport_lookup.js

18 lines
343 B
JavaScript
Raw Normal View History

'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;
};