From 389e5c65234235c5e7b305a10d8108fd414ba760 Mon Sep 17 00:00:00 2001 From: NH Gooi Date: Thu, 12 Sep 2024 15:47:20 +0200 Subject: [PATCH] Fix duplicate route --- app/Http/Controllers/HomeController.php | 2 +- routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 668adff1..c0f8cf98 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -14,7 +14,7 @@ class HomeController extends Controller $news = []; foreach ($apiResult->news as $newsItem) { $news[] = new \Model\NewsItem($newsItem); - } + } $populair = []; $apiResult = $this->API('nieuws/populair?pagina=' . (int)max(1, $page) . '&aantal=5'); diff --git a/routes/web.php b/routes/web.php index 20a5ed6b..998599ca 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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/fragment/{id}/{title}', 'RadioController@podcast')->where(['id' => '\d+', 'title' => '.*']); 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) { if($query = $request->get('query', null)) { return redirect('/podcast/zoeken/' . urlencode($query));