phpvms/resources/js/admin/airport_lookup.js

19 lines
345 B
JavaScript
Raw Normal View History

import request from '../request';
/**
* Lookup an airport from the server
*
* @param {String} icao
*/
export default async (icao) => {
const params = {
method: 'GET',
url: `/api/airports/${icao}/lookup`,
};
const response = await request(params);
console.log('lookup raw response: ', response);
return response.data;
};