phpvms/public/assets/admin/js/admin.js
2017-12-19 17:30:30 -06:00

17 lines
357 B
JavaScript

/**
* admin functions, mostly map/mapping related
*/
function phpvms_vacentral_airport_lookup(icao, callback) {
$.ajax({
url: '/api/airports/' + icao + '/lookup',
method: 'GET',
headers: {
'Authorization': PHPVMS_USER_API_KEY
}
}).done(function (data, status) {
callback(data.data);
});
}