group(function () { Route::get('/', [HomeController::class, 'show']); Route::get('/bookmarks', [BookmarksController::class, 'show']); Route::get('/guestbook', [GuestbookController::class, 'show']); Route::get('/calculators', [CalculatorsController::class, 'show']); Route::get('/computers', [ComputersController::class, 'show']); Route::get('/music', [MusicController::class, 'show']); }); Route::post('/guestbook', [GuestbookController::class, 'addEntry']) ->middleware('rate_limit'); // Admin pages 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');