8ad282aad8
- Login pagina met HMAC-sessie authenticatie - /tenants overzicht: lijst alle rikx-platform accounts - Nieuw tenant aanmaken (naam, slug, admin gebruiker) - Tenant verwijderen (cascade via foreign keys) - Leest rikx-platform SQLite DB via /rikx-platform-data mount - Homepage redirect naar /tenants of /login Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 lines
211 B
TypeScript
8 lines
211 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { getSession } from "../lib/auth";
|
|
|
|
export default async function Home() {
|
|
const session = await getSession();
|
|
redirect(session ? "/tenants" : "/login");
|
|
}
|