Migration complete

This commit is contained in:
2026-06-23 19:24:38 +02:00
parent 279160c1cb
commit 64b26ef059
126 changed files with 8121 additions and 221 deletions

View File

@@ -2,6 +2,7 @@
use App\Http\Controllers\EntryController;
use App\Http\Controllers\ModCP\LanguageController;
use App\Http\Controllers\ReviewController;
use App\Http\Controllers\WebhookController;
use Illuminate\Routing\RedirectController;
use Illuminate\Support\Facades\Route;
@@ -19,13 +20,17 @@ Route::name('entries.')->controller(EntryController::class)->group(function () {
Route::get('/{section}/{entry:slug}', 'show' )->name('show')->where(
[
'section' => 'translations|romhacks|homebrew|utilities|documents|lua-scripts',
'entry' => '[a-zA-Z0-9\-_]+'
'entry' => '[^/]+',
]
);
Route::get('/my-drafts', 'drafts' )->middleware('xf.auth')->name('drafts');
});
Route::name('reviews.')->controller(ReviewController::class)->group(function () {
Route::get('/reviews', 'index')->name('index');
Route::post('/reviews/{entry:id}', 'store')->name('store')->middleware(['xf.auth','can:create,\App\Models\EntryReview']);
});
// SubmissionController.
Route::name('submit.')->prefix('/submit')->controller(\App\Http\Controllers\SubmissionController::class)->middleware(['xf.auth', 'can:create,\App\Models\Entry'])->group(function () {
@@ -99,6 +104,7 @@ Route::name('tools.')->controller(\App\Http\Controllers\ToolsController::class)-
->where(['entry_id' => '[0-9]+']);
Route::get('/play/{entry_id}/{file:file_uuid}', 'play' )->name('play')->middleware('xf.auth')
->where(['entry_id' => '[0-9]+']);
Route::get('/hash', 'hasher' )->name('hash');
});
// ModeratorCPController