Refactor app architecture and clean local artifacts

This commit is contained in:
AzuTear
2026-06-24 23:43:14 +02:00
parent 17134b3b82
commit fef1d36fe8
274 changed files with 37724 additions and 6065 deletions
@@ -0,0 +1,14 @@
using Backend.Domain;
namespace Backend.Security;
public static class HttpContextSessionExtensions
{
private const string SessionItemKey = "__current_session";
public static void SetCurrentSession(this HttpContext context, UserSession session) =>
context.Items[SessionItemKey] = session;
public static UserSession? GetCurrentSession(this HttpContext context) =>
context.Items.TryGetValue(SessionItemKey, out var value) ? value as UserSession : null;
}