Files
Network-MGMT/routes/web.php
T
gitea-mms eb57be730b feat(layout): Layout-Einstellungen, Dark-Mode, Logo, Hilfe-Menü
- Settings Key-Value Store (DB + Cache)
- Einstellungen → Layout: Seitenname, Logo, Button-Farbe, Dark/Light-Mode
- Hilfe-Menü (Ebene 0): Handbuch + Changelog im Browser
- Navigation erweitert: Einstellungen-Dropdown + Hilfe-Dropdown
- CHANGELOG v0.4.0

Version: 0.4.0
2026-06-29 14:15:41 +02:00

45 lines
1.7 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\ProfileController;
use App\Http\Controllers\HelpController;
use App\Http\Controllers\Admin\UserController as AdminUserController;
use App\Http\Controllers\Admin\LayoutController as AdminLayoutController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
// Admin-Bereich nur für Admins
Route::prefix('admin')
->name('admin.')
->middleware(['auth', 'verified', 'role:admin'])
->group(function () {
Route::get('/', fn() => redirect()->route('admin.users.index'));
Route::resource('users', AdminUserController::class);
Route::get('layout', [AdminLayoutController::class, 'index'])->name('layout.index');
Route::put('layout', [AdminLayoutController::class, 'update'])->name('layout.update');
Route::get('layout/remove-logo', [AdminLayoutController::class, 'removeLogo'])->name('layout.removeLogo');
});
// Hilfe-Bereich für alle eingeloggten Benutzer
Route::prefix('help')
->name('help.')
->middleware(['auth'])
->group(function () {
Route::get('manual', [HelpController::class, 'manual'])->name('manual');
Route::get('changelog', [HelpController::class, 'changelog'])->name('changelog');
});
require __DIR__.'/auth.php';