Fix duplicate route

This commit was merged in pull request #8.
This commit is contained in:
NH Gooi
2024-09-12 15:47:20 +02:00
committed by mischa.spelt
parent ba06608ee0
commit a3e8b05008
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class HomeController extends Controller
$news = []; $news = [];
foreach ($apiResult->news as $newsItem) { foreach ($apiResult->news as $newsItem) {
$news[] = new \Model\NewsItem($newsItem); $news[] = new \Model\NewsItem($newsItem);
} }
$populair = []; $populair = [];
$apiResult = $this->API('nieuws/populair?pagina=' . (int)max(1, $page) . '&aantal=5'); $apiResult = $this->API('nieuws/populair?pagina=' . (int)max(1, $page) . '&aantal=5');

View File

@@ -72,7 +72,7 @@ Route::get('/gemist/programma/{programma}/{title}', 'RadioController@podcasts')-
Route::get('/podcast/{programma}/{title}', 'PodcastController@podcasts')->where(['programma' => '\d+'])->name('podcast.overzicht'); Route::get('/podcast/{programma}/{title}', 'PodcastController@podcasts')->where(['programma' => '\d+'])->name('podcast.overzicht');
Route::get('/podcast/fragment/{id}/{title}', 'RadioController@podcast')->where(['id' => '\d+', 'title' => '.*']); Route::get('/podcast/fragment/{id}/{title}', 'RadioController@podcast')->where(['id' => '\d+', 'title' => '.*']);
Route::get('/podcast/aflevering/{id}/{title}', 'PodcastController@podcast')->where(['id' => '\d+']); Route::get('/podcast/aflevering/{id}/{title}', 'PodcastController@podcast')->where(['id' => '\d+']);
Route::get('/podcast/zoeken/{query}', 'RadioController@searchpodcast')->name('gemist.zoeken'); Route::get('/podcast/zoeken/{query}', 'RadioController@searchpodcast')->name('podcast.zoeken');
Route::get('/podcast/zoeken', function(Illuminate\Http\Request $request) { Route::get('/podcast/zoeken', function(Illuminate\Http\Request $request) {
if($query = $request->get('query', null)) { if($query = $request->get('query', null)) {
return redirect('/podcast/zoeken/' . urlencode($query)); return redirect('/podcast/zoeken/' . urlencode($query));