feat: integrate cms

This commit is contained in:
2026-02-09 12:08:47 +01:00
parent 59d3e97ef0
commit a306d24f51
18 changed files with 4279 additions and 35 deletions

View File

@@ -12,9 +12,11 @@ export async function GET(req: NextRequest) {
}
let identity = "Guest";
let company = null;
try {
const payload = JSON.parse(session.value);
identity = payload.identity || "Guest";
company = payload.company || null;
} catch (e) {
// Old format probably just the password
}
@@ -22,5 +24,6 @@ export async function GET(req: NextRequest) {
return NextResponse.json({
authenticated: true,
identity: identity,
company: company,
});
}