Move airport API lookups into unauthenticated calls
This commit is contained in:
+3
-3
@@ -7,6 +7,9 @@ Route::group([], function()
|
|||||||
{
|
{
|
||||||
Route::get('acars', 'AcarsController@index');
|
Route::get('acars', 'AcarsController@index');
|
||||||
|
|
||||||
|
Route::get('airports/{id}', 'AirportController@get');
|
||||||
|
Route::get('airports/{id}/lookup', 'AirportController@lookup');
|
||||||
|
|
||||||
Route::get('flights/search', 'FlightController@search');
|
Route::get('flights/search', 'FlightController@search');
|
||||||
Route::get('flights/{id}', 'FlightController@get');
|
Route::get('flights/{id}', 'FlightController@get');
|
||||||
|
|
||||||
@@ -21,9 +24,6 @@ Route::group([], function()
|
|||||||
*/
|
*/
|
||||||
Route::group(['middleware' => ['api.auth']], function ()
|
Route::group(['middleware' => ['api.auth']], function ()
|
||||||
{
|
{
|
||||||
Route::get('airports/{id}', 'AirportController@get');
|
|
||||||
Route::get('airports/{id}/lookup', 'AirportController@lookup');
|
|
||||||
|
|
||||||
Route::get('pireps/{id}', 'PirepController@get');
|
Route::get('pireps/{id}', 'PirepController@get');
|
||||||
Route::post('pireps/prefile', 'PirepController@prefile');
|
Route::post('pireps/prefile', 'PirepController@prefile');
|
||||||
Route::post('pireps/{id}/file', 'PirepController@file');
|
Route::post('pireps/{id}/file', 'PirepController@file');
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ function changeStatus(values) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(document).on('submit', 'form.pirep_submit_status', function (event) {
|
$(document).on('submit', 'form.pirep_submit_status', function (event) {
|
||||||
console.log(event);
|
console.log(event);
|
||||||
|
|
||||||
@@ -34,6 +34,6 @@ function changeStatus(values) {
|
|||||||
|
|
||||||
changeStatus(values);
|
changeStatus(values);
|
||||||
});
|
});
|
||||||
//});
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
Reference in New Issue
Block a user