Current state
This commit is contained in:
81
routes/legacy.php
Normal file
81
routes/legacy.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\Legacy\HomeController;
|
||||
use App\Http\Controllers\Legacy\ArtController;
|
||||
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;
|
||||
use App\Http\Controllers\Legacy\ProfileController as LegacyProfileController;
|
||||
use App\Http\Controllers\Legacy\TopFavouritesController;
|
||||
use App\Http\Controllers\Legacy\TopAuthorsController;
|
||||
use App\Http\Controllers\Legacy\TodayInHistoryController;
|
||||
use App\Http\Controllers\Legacy\TodayDownloadsController;
|
||||
use App\Http\Controllers\Legacy\MonthlyCommentatorsController;
|
||||
use App\Http\Controllers\Legacy\MembersController;
|
||||
use App\Http\Controllers\Legacy\LatestController;
|
||||
use App\Http\Controllers\Legacy\LatestCommentsController;
|
||||
use App\Http\Controllers\Legacy\InterviewController;
|
||||
use App\Http\Controllers\BrowseCategoriesController;
|
||||
|
||||
// Legacy site routes
|
||||
Route::get('/', [HomeController::class, 'index'])->name('legacy.home');
|
||||
Route::get('/home', [HomeController::class, 'index']);
|
||||
|
||||
Route::get('/art/{id}/{slug?}', [ArtController::class, 'show'])->where('id', '\\d+')->name('legacy.art.show');
|
||||
Route::match(['get','post'], '/art/{id}/comment', [ArtController::class, 'show'])->where('id', '\\d+');
|
||||
|
||||
Route::get('/avatar/{id}/{name?}', [AvatarController::class, 'show'])->where('id', '\\d+')->name('legacy.avatar');
|
||||
|
||||
Route::get('/forum', [ForumController::class, 'index'])->name('legacy.forum.index');
|
||||
Route::get('/forum/{topic_id}/{slug?}', [ForumController::class, 'topic'])->where('topic_id', '\\d+')->name('legacy.forum.topic');
|
||||
|
||||
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');
|
||||
|
||||
// Short legacy routes for top-level category URLs like /Photography/3
|
||||
// Short legacy routes for top-level category URLs (mapped to CategoryController@show)
|
||||
Route::get('/Photography/{id}', [CategoryController::class, 'show'])
|
||||
->defaults('group', 'Photography')
|
||||
->where('id', '\\d+');
|
||||
|
||||
Route::get('/Wallpapers/{id}', [CategoryController::class, 'show'])
|
||||
->defaults('group', 'Wallpapers')
|
||||
->where('id', '\\d+');
|
||||
|
||||
Route::get('/Skins/{id}', [CategoryController::class, 'show'])
|
||||
->defaults('group', 'Skins')
|
||||
->where('id', '\\d+');
|
||||
|
||||
Route::get('/Other/{id}', [CategoryController::class, 'show'])
|
||||
->defaults('group', 'Other')
|
||||
->where('id', '\\d+');
|
||||
|
||||
Route::get('/browse', [BrowseController::class, 'index'])->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');
|
||||
Route::get('/chat', [ChatController::class, 'index'])->name('legacy.chat');
|
||||
|
||||
Route::get('/browse-categories', [BrowseCategoriesController::class, 'index'])->name('browse.categories');
|
||||
|
||||
Route::get('/profile/{username?}', [LegacyProfileController::class, 'show'])->name('legacy.profile');
|
||||
|
||||
Route::get('/top-favourites', [TopFavouritesController::class, 'index'])->name('legacy.top_favourites');
|
||||
Route::get('/top-authors', [TopAuthorsController::class, 'index'])->name('legacy.top_authors');
|
||||
|
||||
Route::get('/today-in-history', [TodayInHistoryController::class, 'index'])->name('legacy.today_in_history');
|
||||
Route::get('/today-downloads', [TodayDownloadsController::class, 'index'])->name('legacy.today_downloads');
|
||||
|
||||
Route::get('/monthly-commentators', [MonthlyCommentatorsController::class, 'index'])->name('legacy.monthly_commentators');
|
||||
Route::get('/members', [MembersController::class, 'index'])->name('legacy.members');
|
||||
Route::get('/latest', [LatestController::class, 'index'])->name('legacy.latest');
|
||||
Route::get('/latest-comments', [LatestCommentsController::class, 'index'])->name('legacy.latest_comments');
|
||||
Route::get('/interviews', [InterviewController::class, 'index'])->name('legacy.interviews');
|
||||
Reference in New Issue
Block a user