Verified Commit 70a90243 authored by Korko's avatar Korko
Browse files

Keep the original route path on 1.6.x

parent 9d44d5d5
......@@ -32,13 +32,13 @@ Route::middleware(['decrypt.key:participant,name'])->group(function () {
Route::post('/dearsanta/{participant:hash}/fetchState', [DearSantaController::class, 'fetchState'])->name('dearsanta.fetchState');
});
Route::get('/draw/{draw:hash}', [OrganizerController::class, 'view'])->name('organizerPanel');
Route::get('/org/{draw:hash}', [OrganizerController::class, 'view'])->name('organizerPanel');
Route::middleware(['decrypt.key:draw,mail_title'])->group(function () {
Route::post('/draw/{draw:hash}', [OrganizerController::class, 'fetch'])->name('organizerPanel.fetch');
Route::delete('/draw/{draw:hash}', [OrganizerController::class, 'delete'])->name('organizerPanel.delete');
Route::post('/draw/{draw:hash}/fetchState', [OrganizerController::class, 'fetchState'])->name('organizerPanel.fetchState');
Route::post('/org/{draw:hash}', [OrganizerController::class, 'fetch'])->name('organizerPanel.fetch');
Route::delete('/org/{draw:hash}', [OrganizerController::class, 'delete'])->name('organizerPanel.delete');
Route::post('/org/{draw:hash}/fetchState', [OrganizerController::class, 'fetchState'])->name('organizerPanel.fetchState');
});
Route::middleware(['decrypt.key:participant,name'])->group(function () {
Route::post('/draw/{draw:hash}/{participant:id}/changeEmail', [OrganizerController::class, 'changeEmail'])->name('organizerPanel.changeEmail');
Route::post('/draw/{draw:hash}/{participant:id}/resendEmail', [OrganizerController::class, 'resendEmail'])->name('organizerPanel.resendEmail');
Route::post('/org/{draw:hash}/{participant:id}/changeEmail', [OrganizerController::class, 'changeEmail'])->name('organizerPanel.changeEmail');
Route::post('/org/{draw:hash}/{participant:id}/resendEmail', [OrganizerController::class, 'resendEmail'])->name('organizerPanel.resendEmail');
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment