#36 Add authentication for API; generate API key
This commit is contained in:
@@ -19,6 +19,18 @@ class AirportController extends AppBaseController
|
||||
$this->airportRepo = $airportRepo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do a lookup, via vaCentral, for the airport information
|
||||
* @param $id
|
||||
* @return AirportResource
|
||||
*/
|
||||
public function get($id)
|
||||
{
|
||||
$id = strtoupper($id);
|
||||
AirportResource::withoutWrapping();
|
||||
return new AirportResource($this->airportRepo->find($id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Do a lookup, via vaCentral, for the airport information
|
||||
* @param $id
|
||||
|
||||
Reference in New Issue
Block a user