Loheide-eu-mitarbeiterplatt.../routes/web.php
Friederich Loheide 28ef1e4a20 Plugin-System; Neuigkeiten und Termine als mitgelieferte Plugins
- Plugins nach WordPress-Prinzip: plugin.json-Manifest mit Versions- und
  Abhängigkeitsprüfung, eigenes PSR-4-Autoloading, register()/boot(),
  activate()/deactivate()/uninstall(), Migrationen, Routen und Views je Plugin
- plugins-core/ (mitgeliefert, aktiv bis zur Deaktivierung) und plugins/
  (Kunden-Plugins, geschützt vor Updates, inaktiv bis zur Aktivierung)
- Zustand in storage/app/plugins.json – Laden ohne Datenbankabfrage
- Wiederherstellungsmodus: Ausnahmen und Fatal Errors beim Laden
  deaktivieren das Plugin, das Portal bleibt erreichbar
- Hooks (Actions/Filter mit Prioritäten) und Registries für Navigation,
  Startseiten-Kacheln, Rechte und Admin-Seiten (Filament-Discovery)
- Admin-Seite „Plugins“: aktivieren, deaktivieren, per ZIP installieren
  (ZIP-Slip-Schutz), löschen mit oder ohne Daten; abschaltbar per
  INHAUS_DISALLOW_FILE_MODS
- Startseite komplett aus Kacheln; Plugin-Seiten als „slug::Seite“
- Version 0.3.0

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 07:06:16 +00:00

46 lines
2.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use App\Http\Controllers\Admin\UpdateController;
use App\Http\Controllers\CronController;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\InstallController;
use App\Http\Controllers\PeopleController;
use App\Http\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;
// Web-Installer – nur solange die Installation nicht eingerichtet ist.
Route::prefix('install')->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('/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');
});