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');
|
||||
|
||||
// Admin pages
|
||||
Route::get('/admin/guestbook', [AdminGuestbookController::class, 'show'])
|
||||
->middleware('auth');
|
||||
Route::get('/admin/bookmarks', [AdminBookmarksController::class, 'show'])
|
||||
->middleware('auth');
|
||||
Route::get('/admin/import', [AdminImportController::class, 'show'])
|
||||
->middleware('auth');
|
||||
Route::post('/admin/import', [AdminImportController::class, 'submit'])
|
||||
->name('admin.import.submit')
|
||||
->middleware('auth');
|
||||
Route::prefix('admin')->group(function () {
|
||||
Route::get('/admin/guestbook', [AdminGuestbookController::class, 'show']);
|
||||
Route::get('/admin/bookmarks', [AdminBookmarksController::class, 'show']);
|
||||
Route::get('/admin/import', [AdminImportController::class, 'show']);
|
||||
Route::post('/admin/import', [AdminImportController::class, 'submit'])
|
||||
->name('admin.import.submit');
|
||||
|
||||
})->middleware('auth');
|
||||
|
|
Loading…
Reference in a new issue