|
@@ -85,20 +85,20 @@ discard block |
|
|
block discarded – undo |
|
85
|
85
|
Route::post('login', [LoginController::class, 'login'])->name('login'); |
|
86
|
86
|
Route::get('logout', [LoginController::class, 'logout'])->name('logout'); |
|
87
|
87
|
|
|
88
|
|
-Route::middleware('isVerified')->group(function () { |
|
|
88
|
+Route::middleware('isVerified')->group(function() { |
|
89
|
89
|
Route::get('resetpassword', [ResetPasswordController::class, 'reset']); |
|
90
|
90
|
Route::post('resetpassword', [ResetPasswordController::class, 'reset']); |
|
91
|
91
|
|
|
92
|
92
|
Route::get('profile', [ProfileController::class, 'show']); |
|
93
|
93
|
|
|
94
|
|
- Route::prefix('browse')->group(function () { |
|
|
94
|
+ Route::prefix('browse')->group(function() { |
|
95
|
95
|
Route::get('tags', [BrowseController::class, 'tags']); |
|
96
|
96
|
Route::get('group', [BrowseController::class, 'group']); |
|
97
|
97
|
Route::get('All', [BrowseController::class, 'index']); |
|
98
|
98
|
Route::get('{parentCategory}/{id?}', [BrowseController::class, 'show'])->middleware('clearance'); |
|
99
|
99
|
}); |
|
100
|
100
|
|
|
101
|
|
- Route::prefix('cart')->group(function () { |
|
|
101
|
+ Route::prefix('cart')->group(function() { |
|
102
|
102
|
Route::get('index', [CartController::class, 'index']); |
|
103
|
103
|
Route::post('index', [CartController::class, 'index']); |
|
104
|
104
|
Route::get('add', [CartController::class, 'store']); |
|
@@ -131,7 +131,7 @@ discard block |
|
|
block discarded – undo |
|
131
|
131
|
|
|
132
|
132
|
Route::post('failed', [FailedReleasesController::class, 'failed'])->name('failed'); |
|
133
|
133
|
|
|
134
|
|
- Route::middleware('clearance')->group(function () { |
|
|
134
|
+ Route::middleware('clearance')->group(function() { |
|
135
|
135
|
Route::get('Games', [GamesController::class, 'show'])->name('Games'); |
|
136
|
136
|
Route::post('Games', [GamesController::class, 'show'])->name('Games'); |
|
137
|
137
|
|
|
@@ -226,7 +226,7 @@ discard block |
|
|
block discarded – undo |
|
226
|
226
|
Route::post('disable2fa', [PasswordSecurityController::class, 'disable2fa'])->name('disable2fa'); |
|
227
|
227
|
}); |
|
228
|
228
|
|
|
229
|
|
-Route::middleware('role:Admin', '2fa')->prefix('admin')->group(function () { |
|
|
229
|
+Route::middleware('role:Admin', '2fa')->prefix('admin')->group(function() { |
|
230
|
230
|
Route::get('index', [AdminPageController::class, 'index']); |
|
231
|
231
|
Route::get('anidb-delete/{id}', [AdminAnidbController::class, 'destroy']); |
|
232
|
232
|
Route::post('anidb-delete/{id}', [AdminAnidbController::class, 'destroy']); |
|
@@ -345,12 +345,12 @@ discard block |
|
|
block discarded – undo |
|
345
|
345
|
Route::post('group-list-inactive', [AdminGroupController::class, 'inactive']); |
|
346
|
346
|
}); |
|
347
|
347
|
|
|
348
|
|
-Route::middleware('role_or_permission:Admin|Moderator|edit release')->prefix('admin')->group(function () { |
|
|
348
|
+Route::middleware('role_or_permission:Admin|Moderator|edit release')->prefix('admin')->group(function() { |
|
349
|
349
|
Route::get('release-edit', [AdminReleasesController::class, 'edit']); |
|
350
|
350
|
Route::post('release-edit', [AdminReleasesController::class, 'edit']); |
|
351
|
351
|
}); |
|
352
|
352
|
|
|
353
|
|
-Route::post('2faVerify', function () { |
|
|
353
|
+Route::post('2faVerify', function() { |
|
354
|
354
|
return redirect()->to(URL()->previous()); |
|
355
|
355
|
})->name('2faVerify')->middleware('2fa'); |
|
356
|
356
|
|