Move admin routes to prefix group
This commit is contained in:
parent
e89a7bb329
commit
02c68f8545
1 changed files with 7 additions and 9 deletions
|
@ -37,13 +37,11 @@
|
||||||
->middleware('rate_limit');
|
->middleware('rate_limit');
|
||||||
|
|
||||||
// Admin pages
|
// Admin pages
|
||||||
Route::get('/admin/guestbook', [AdminGuestbookController::class, 'show'])
|
Route::prefix('admin')->group(function () {
|
||||||
->middleware('auth');
|
Route::get('/admin/guestbook', [AdminGuestbookController::class, 'show']);
|
||||||
Route::get('/admin/bookmarks', [AdminBookmarksController::class, 'show'])
|
Route::get('/admin/bookmarks', [AdminBookmarksController::class, 'show']);
|
||||||
->middleware('auth');
|
Route::get('/admin/import', [AdminImportController::class, 'show']);
|
||||||
Route::get('/admin/import', [AdminImportController::class, 'show'])
|
Route::post('/admin/import', [AdminImportController::class, 'submit'])
|
||||||
->middleware('auth');
|
->name('admin.import.submit');
|
||||||
Route::post('/admin/import', [AdminImportController::class, 'submit'])
|
|
||||||
->name('admin.import.submit')
|
|
||||||
->middleware('auth');
|
|
||||||
|
|
||||||
|
})->middleware('auth');
|
||||||
|
|
Loading…
Reference in a new issue