Add /api/airlines and /api/airline/{id} #120

This commit is contained in:
Nabeel Shahzad
2018-01-06 15:13:33 -06:00
parent 46a411e27b
commit 2de8d9ed64
7 changed files with 95 additions and 24 deletions

View File

@@ -59,7 +59,7 @@ class FlightTest extends TestCase
$flights = factory(App\Models\Flight::class, 100)->create();
$flight = $flights->random();
$query = 'flight_id=' . $flight->id;
$query = 'dep_icao=' . $flight->dep_icao;
$req = $this->get('/api/flights/search?' . $query);
$body = $req->json();