31 lines
1.8 KiB
PHP
31 lines
1.8 KiB
PHP
<?php
|
|
|
|
// Judging Routes
|
|
use App\Http\Controllers\Judging\BonusScoreEntryController;
|
|
use App\Http\Controllers\Judging\BonusScoreEntryListController;
|
|
use App\Http\Controllers\Judging\BonusScoreRecordController;
|
|
use App\Http\Controllers\Judging\JudgingController;
|
|
use App\Http\Controllers\Judging\PrelimJudgingController;
|
|
use App\Http\Middleware\CheckIfCanJudge;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['auth', 'verified', CheckIfCanJudge::class])->prefix('judging')->controller(JudgingController::class)->group(function () {
|
|
Route::get('/', 'index')->name('judging.index');
|
|
Route::get('/audition/{audition}', 'auditionEntryList')->name('judging.auditionEntryList');
|
|
Route::get('/entry/{entry}', 'entryScoreSheet')->name('judging.entryScoreSheet');
|
|
Route::post('/entry/{entry}', 'saveScoreSheet')->name('judging.saveScoreSheet');
|
|
Route::patch('/entry/{entry}', 'updateScoreSheet')->name('judging.updateScoreSheet');
|
|
});
|
|
|
|
// Prelim Audition Related Routes
|
|
Route::middleware(['auth', 'verified', CheckIfCanJudge::class])->prefix('judging/prelims')->controller(PrelimJudgingController::class)->group(function () {
|
|
Route::get('/{audition}', 'prelimEntryList')->name('judging.prelimEntryList');
|
|
});
|
|
|
|
// Bonus score judging routes
|
|
Route::middleware(['auth', 'verified', CheckIfCanJudge::class])->prefix('judging/bonus_scores')->group(function () {
|
|
Route::get('/{audition}', BonusScoreEntryListController::class)->name('judging.bonusScore.EntryList'); // List of entries in an audition
|
|
Route::get('/entries/{entry}', BonusScoreEntryController::class)->name('judging.bonusScore.entry'); // Form to enter an entries score
|
|
Route::post('/entries/{entry}', BonusScoreRecordController::class)->name('judging.bonusScores.recordScore'); // Record the score
|
|
});
|