2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| API Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2017-12-13 06:58:27 +08:00
|
|
|
Route::group([], function ()
|
|
|
|
{
|
2017-08-15 07:26:20 +08:00
|
|
|
Route::match(['get'], 'status', 'BaseController@status');
|
2017-08-15 12:36:49 +08:00
|
|
|
|
2017-12-12 12:05:22 +08:00
|
|
|
Route::match(['get'], 'airports/{id}', 'AirportController@get');
|
2017-12-08 07:22:15 +08:00
|
|
|
Route::match(['get'], 'airports/{id}/lookup', 'AirportController@lookup');
|
|
|
|
|
2017-08-15 07:26:20 +08:00
|
|
|
Route::match(['get'], 'flights/search', 'FlightController@search');
|
2017-12-12 21:25:11 +08:00
|
|
|
Route::match(['get'], 'flights/{id}', 'FlightController@get');
|
2017-08-15 12:36:49 +08:00
|
|
|
|
|
|
|
Route::match(['get'], 'pirep/{id}', 'PirepController@get');
|
2017-12-13 06:58:27 +08:00
|
|
|
|
|
|
|
# This is the info of the user whose token is in use
|
|
|
|
Route::match(['get'], 'user', 'UserController@index');
|
|
|
|
#Route::match(['get'], 'user/bids', 'UserController@index');
|
|
|
|
Route::match(['get'], 'users/{id}', 'UserController@get');
|
|
|
|
Route::match(['get'], 'users/{id}/bids', 'UserController@bids');
|
2017-08-15 07:26:20 +08:00
|
|
|
});
|