Skip to content

Commit

Permalink
PIREPS resource except for show (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio authored Feb 1, 2020
1 parent 893e28e commit 5e4a003
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/Http/Routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,9 @@
Route::get('flights/search', 'FlightController@search')->name('flights.search');
Route::resource('flights', 'FlightController');

Route::get('/pireps', 'PirepController@index')->name('pireps.index');
Route::get('/pireps/create', 'PirepController@create')->name('pireps.create');
Route::post('/pireps', 'PirepController@store')->name('pireps.store');
Route::get('/pireps/{id}/edit', 'PirepController@edit')->name('pireps.edit');
Route::put('/pireps/{id}', 'PirepController@update')->name('pireps.update');
Route::delete('/pireps/{id}', 'PirepController@destroy')->name('pireps.destroy');
Route::resource('pireps', 'PirepController', [
'except' => ['show'],
]);

Route::get('pireps/fares', 'PirepController@fares');
Route::post('pireps/{id}/submit', 'PirepController@submit')->name('pireps.submit');
Expand Down

0 comments on commit 5e4a003

Please sign in to comment.