Club System
This commit is contained in:
@@ -6,3 +6,5 @@ use Illuminate\Support\Facades\Artisan;
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
Schedule::command('entries:purge-rejected')->daily();
|
||||
|
||||
@@ -36,6 +36,26 @@ Route::name('submit.')->prefix('/edit')->controller(\App\Http\Controllers\Submis
|
||||
->where([ 'section' => 'translations|romhacks|homebrew|utilities|documents|lua-scripts|tutorials', 'entry' => '[0-9\-]+' ]);
|
||||
});
|
||||
|
||||
// QueueController
|
||||
Route::name('queue.')->prefix('/queue')->controller(\App\Http\Controllers\QueueController::class)->group(function () {
|
||||
Route::get('/', 'index' )->name('index');
|
||||
|
||||
Route::patch('/{entry:id}/comment', 'updateComment' )
|
||||
->middleware(['xf.auth', 'can:updateComment,entry' ] )
|
||||
->where([ 'entry' => '[0-9\-]+' ])
|
||||
->name('comment');
|
||||
|
||||
Route::patch('/{entry:id}/approve', 'approve' )
|
||||
->middleware(['xf.auth', 'can:approve,entry' ] )
|
||||
->where([ 'entry' => '[0-9\-]+' ])
|
||||
->name('approve');
|
||||
|
||||
Route::patch('/{entry:id}/reject', 'reject' )
|
||||
->middleware(['xf.auth', 'can:reject,entry' ] )
|
||||
->where([ 'entry' => '[0-9\-]+' ])
|
||||
->name('reject');
|
||||
});
|
||||
|
||||
// RedirectController
|
||||
Route::name('redirect.')->controller(\App\Http\Controllers\RedirectController::class)->group(function () {
|
||||
Route::get('/entry/report_redirect', 'entryReportRedirect' )->name('entry_report');
|
||||
|
||||
Reference in New Issue
Block a user