From 8f43d48714a7346d0730145a8ab209c0ff8bc8fe Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 27 Jun 2026 03:27:06 +0200 Subject: feat: add /genres page listing all genres with movie counts - Add CinemaController::genres() and ::genre($name) methods - /genres shows all genres with movie counts (like /popular/topics) - /genres/{genre} shows movies filtered by that genre with pagination - Genre badges on cinema_show page now link to /genres/{genre} - Add Genres link to navbar next to Cinema --- routes/web.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routes') diff --git a/routes/web.php b/routes/web.php index 95ac094..a2132c1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -35,4 +35,6 @@ Route::get('/feed/search', 'FeedController@search')->name('feed_search'); Route::get('/cinema', 'CinemaController@cinema')->name('cinema.index'); Route::get('/cinema/movie/{imdb_id}', 'CinemaController@show')->name('cinema.show'); Route::get('/cinema/search', 'CinemaController@search')->name('cinema.search'); +Route::get('/genres', 'CinemaController@genres')->name('cinema.genres'); +Route::get('/genres/{genre}', 'CinemaController@genre')->name('cinema.genre')->where('genre', '(.+)'); Route::get('/about', 'IndexController@about')->name('about'); -- cgit v1.2.3