middleware('throttle:30,1')->group(function () { Route::get('/', [InstallController::class, 'requirements']); Route::get('/datenbank', [InstallController::class, 'database']); Route::post('/datenbank', [InstallController::class, 'saveDatabase']); Route::get('/konto', [InstallController::class, 'account']); Route::post('/konto', [InstallController::class, 'saveAccount']); }); // Web-Cron für Hoster ohne Cron (siehe App\Support\BackgroundTasks). Route::get('/cron/{token}', CronController::class)->middleware('throttle:10,1')->name('cron'); // Login, Logout und Passwort-Reset stellt Laravel Fortify bereit (FortifyServiceProvider). Route::middleware('auth')->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'); }); // Self-Updater (docs/specs/self-updater.md) – nur für Administratoren, CSRF über die web-Gruppe. Route::middleware(['auth', 'can:admin'])->prefix('admin/update')->name('admin.update.')->group(function () { Route::post('/check', [UpdateController::class, 'check'])->name('check'); Route::post('/install', [UpdateController::class, 'install'])->name('install'); Route::get('/progress', [UpdateController::class, 'progress'])->name('progress'); Route::post('/channel', [UpdateController::class, 'channel'])->name('channel'); Route::post('/migrations', [UpdateController::class, 'migrations'])->name('migrations'); });