fixed gallery from legacy into one
This commit is contained in:
@@ -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