summaryrefslogtreecommitdiff
path: root/routes/web.php
diff options
context:
space:
mode:
authorDeveloper2026-06-27 03:27:06 +0200
committerDeveloper2026-06-27 03:27:06 +0200
commit8f43d48714a7346d0730145a8ab209c0ff8bc8fe (patch)
treeab5fcf5598e88a4ef7883dc09e11fb1def6fc9e1 /routes/web.php
parentdf321aa19b9734981b81847389176021a14f44d4 (diff)
downloadcurious-8f43d48714a7346d0730145a8ab209c0ff8bc8fe.tar.gz
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
Diffstat (limited to 'routes/web.php')
-rw-r--r--routes/web.php2
1 files changed, 2 insertions, 0 deletions
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');