group(function () { Route::get('/', DashboardController::class)->name('dashboard'); Route::get('/neuigkeiten', [NewsController::class, 'index'])->name('news.index'); Route::get('/neuigkeiten/{post:slug}', [NewsController::class, 'show'])->name('news.show'); Route::get('/termine', [EventController::class, 'index'])->name('events.index'); Route::get('/termine/{event}', [EventController::class, 'show'])->name('events.show'); Route::get('/termine/{event}/kalender.ics', [EventController::class, 'ics'])->name('events.ics'); Route::get('/personen', [PeopleController::class, 'index'])->name('people.index'); Route::get('/personen/{user}', [PeopleController::class, 'show'])->name('people.show'); Route::get('/profil', [ProfileController::class, 'show'])->name('profile.show'); Route::get('/profil/bearbeiten', [ProfileController::class, 'edit'])->name('profile.edit'); Route::put('/profil', [ProfileController::class, 'update'])->name('profile.update'); Route::post('/profil/bild', [ProfileController::class, 'updateAvatar'])->name('profile.avatar.update'); Route::delete('/profil/bild', [ProfileController::class, 'destroyAvatar'])->name('profile.avatar.destroy'); Route::put('/profil/darstellung', [ProfileController::class, 'updateTheme'])->name('profile.theme.update'); });