Add TuxiNet branding and document templates

This commit is contained in:
Thomas
2025-10-28 13:56:54 +01:00
parent f956a735ca
commit 3755435890
48 changed files with 1762 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Http\Middleware;
use App\Core\Response;
use App\Services\AuthService;
class AuthMiddleware
{
public function handle(array $params, callable $next): Response
{
$auth = AuthService::getInstance();
if (!$auth->check()) {
return new Response('', 302, ['Location' => '/login']);
}
return $next($params);
}
}