Fix past trip view

This commit is contained in:
Ben Goldsworthy 2022-10-19 22:53:52 +00:00
parent ff3c265968
commit 6563a4b5e2
3 changed files with 5 additions and 114 deletions

View file

@ -15,6 +15,10 @@ use GuzzleHttp\Client;
|
*/
Route::get('/past-trips', function () {
return view('past-trips');
});
Route::get('/{tripId?}', function ($tripId = null) {
if (!$tripId && !config('app.current_trip_id')) return view('no-trip');
@ -62,7 +66,3 @@ Route::get('/{tripId?}', function ($tripId = null) {
return 'Something went wrong';
}
});
Route::get('/past-trips', function () {
return view('past-trips');
});