Adds profile and settings pages

This commit is contained in:
2026-06-22 23:59:04 +02:00
parent 6976eb4337
commit 2544e20b3c
49 changed files with 2741 additions and 34 deletions
@@ -22,10 +22,20 @@ public class AvailabilityMiddleware
_logger = logger;
}
// Paths that are always accessible regardless of system availability.
// Auth and Setup must stay open so admins can log in and the frontend
// can determine whether the system is initialized.
private static readonly string[] _bypassPrefixes =
[
"/api/v1/Availability/status",
"/api/v1/Auth/",
"/api/v1/Setup/status",
];
public async Task InvokeAsync(HttpContext context, IAvailabilityService availabilityService)
{
// Bypass voor status endpoint
if (context.Request.Path.StartsWithSegments("/api/availability/status"))
var path = context.Request.Path.Value ?? string.Empty;
if (_bypassPrefixes.Any(p => path.StartsWith(p, StringComparison.OrdinalIgnoreCase)))
{
await _next(context);
return;