More fixes for maps; user API key set to design

This commit is contained in:
Nabeel Shahzad
2017-12-19 17:30:30 -06:00
parent f2131093c4
commit ac4958a2be
6 changed files with 139 additions and 99 deletions

View File

@@ -5,7 +5,10 @@
function phpvms_vacentral_airport_lookup(icao, callback) {
$.ajax({
url: '/api/airports/' + icao + '/lookup',
method: 'GET'
method: 'GET',
headers: {
'Authorization': PHPVMS_USER_API_KEY
}
}).done(function (data, status) {
callback(data.data);
});