fixed gallery from legacy into one
This commit is contained in:
@@ -7,7 +7,6 @@ use App\Http\Controllers\Legacy\AvatarController;
|
||||
use App\Http\Controllers\Legacy\ForumController;
|
||||
use App\Http\Controllers\Legacy\NewsController;
|
||||
use App\Http\Controllers\Legacy\CategoryController;
|
||||
use App\Http\Controllers\Legacy\BrowseController;
|
||||
use App\Http\Controllers\Legacy\FeaturedArtworksController;
|
||||
use App\Http\Controllers\Legacy\DailyUploadsController;
|
||||
use App\Http\Controllers\Legacy\ChatController;
|
||||
@@ -27,7 +26,7 @@ use App\Http\Controllers\BrowseCategoriesController;
|
||||
use App\Http\Controllers\GalleryController;
|
||||
use App\Http\Controllers\Legacy\ReceivedCommentsController;
|
||||
use App\Http\Controllers\Legacy\UserController as LegacyUserController;
|
||||
use App\Http\Controllers\Legacy\PhotographyController;
|
||||
use App\Http\Controllers\BrowseGalleryController;
|
||||
|
||||
// Legacy site routes
|
||||
Route::get('/', [HomeController::class, 'index'])->name('legacy.home');
|
||||
@@ -44,9 +43,9 @@ Route::get('/forum/{topic_id}/{slug?}', [ForumController::class, 'topic'])->wher
|
||||
Route::get('/news/{id}/{slug?}', [NewsController::class, 'show'])->where('id', '\\d+')->name('legacy.news.show');
|
||||
|
||||
Route::get('/categories', [CategoryController::class, 'index'])->name('legacy.categories');
|
||||
Route::get('/category/{group}/{slug?}/{id?}', [CategoryController::class, 'show'])->name('legacy.category');
|
||||
Route::get('/category/{group}/{slug?}/{id?}', [BrowseGalleryController::class, 'legacyCategory'])->name('legacy.category');
|
||||
|
||||
Route::get('/browse', [BrowseController::class, 'index'])->name('legacy.browse');
|
||||
Route::get('/browse', [BrowseGalleryController::class, 'browse'])->name('legacy.browse');
|
||||
Route::get('/featured', [FeaturedArtworksController::class, 'index'])->name('legacy.featured');
|
||||
Route::get('/featured-artworks', [FeaturedArtworksController::class, 'index'])->name('legacy.featured_artworks');
|
||||
Route::get('/daily-uploads', [DailyUploadsController::class, 'index'])->name('legacy.daily_uploads');
|
||||
|
||||
@@ -115,12 +115,12 @@ Route::bind('artwork', function ($value) {
|
||||
// to serve photography's root page. This catch-all route delegates to a controller that
|
||||
// will forward to the appropriate existing controller (artwork or category handlers).
|
||||
// Provide a named route alias for legacy artwork URL generation used in tests.
|
||||
Route::get('/{contentTypeSlug}/{categoryPath}/{artwork}', [\App\Http\Controllers\ContentRouterController::class, 'handle'])
|
||||
Route::get('/{contentTypeSlug}/{categoryPath}/{artwork}', [\App\Http\Controllers\BrowseGalleryController::class, 'showArtwork'])
|
||||
->where('contentTypeSlug', 'photography|wallpapers|skins|other')
|
||||
->where('categoryPath', '[^/]+(?:/[^/]+)*')
|
||||
->name('artworks.show');
|
||||
|
||||
Route::get('/{contentTypeSlug}/{path?}', [\App\Http\Controllers\ContentRouterController::class, 'handle'])
|
||||
Route::get('/{contentTypeSlug}/{path?}', [\App\Http\Controllers\BrowseGalleryController::class, 'content'])
|
||||
->where('contentTypeSlug', 'photography|wallpapers|skins|other')
|
||||
->where('path', '.*')
|
||||
->name('content.route');
|
||||
|
||||
Reference in New Issue
Block a user