Move admin routes to prefix group

This commit is contained in:
Roscoe 2024-06-18 02:52:19 +01:00
parent 0f4da7e3df
commit e1717e13d1

View file

@ -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');