2024-12-29 16:36:49 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
2024-12-30 18:28:50 +02:00
|
|
|
//Route::get('/', function () {
|
|
|
|
|
// return view('welcome');
|
|
|
|
|
//});
|
2024-12-30 01:51:28 +02:00
|
|
|
|
|
|
|
|
Auth::routes();
|
|
|
|
|
|
2024-12-30 18:28:50 +02:00
|
|
|
Route::get('/', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
2025-01-26 21:36:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Route::prefix('movies')->group(function () {
|
|
|
|
|
Route::get('/', [\App\Http\Controllers\MovieController::class, 'index'])->name('movie.index');
|
|
|
|
|
Route::get('/{slug}', [\App\Http\Controllers\MovieController::class, 'show'])->name('movie.show');
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:52:22 +02:00
|
|
|
Route::prefix('celebrities')->group(function () {
|
|
|
|
|
Route::get('/{slug}', [\App\Http\Controllers\CelebrityController::class, 'show'])->name('celebrity.show');
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-26 21:36:05 +02:00
|
|
|
Route::prefix('profile/{slug}')->group(function () {
|
|
|
|
|
Route::get('/lists', [\App\Http\Controllers\MediaListController::class, 'index'])->name('profile.list.index');
|
|
|
|
|
Route::get('/lists/create', [\App\Http\Controllers\MediaListController::class, 'create'])->name('profile.list.create');
|
|
|
|
|
Route::post('/lists/store', [\App\Http\Controllers\MediaListController::class, 'store'])->name('profile.list.store');
|
|
|
|
|
Route::get('/lists/view/{slug}', [\App\Http\Controllers\MediaListController::class, 'show'])->name('profile.list.show');
|
|
|
|
|
|
|
|
|
|
});
|