diff options
Diffstat (limited to 'routes')
-rw-r--r-- | routes/web.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/routes/web.php b/routes/web.php index 6456439..fb12e96 100644 --- a/routes/web.php +++ b/routes/web.php @@ -37,13 +37,11 @@ Route::post('/guestbook', [GuestbookController::class, 'addEntry']) ->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'); |