From e4758469cf70d13a7d9006c2ea1c8f2a4cda9f59 Mon Sep 17 00:00:00 2001 From: Alma Date: Wed, 9 Apr 2025 10:16:08 +0200 Subject: [PATCH] learn iframe fixed calcul and gite --- app/calculation/page.tsx | 24 ++++++++++++++++++++++++ app/gitlab/page.tsx | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 app/calculation/page.tsx diff --git a/app/calculation/page.tsx b/app/calculation/page.tsx new file mode 100644 index 00000000..aa755e8f --- /dev/null +++ b/app/calculation/page.tsx @@ -0,0 +1,24 @@ +import { getServerSession } from "next-auth/next"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; +import { redirect } from "next/navigation"; + +export default async function Page() { + const session = await getServerSession(authOptions); + + if (!session) { + redirect("/signin"); + } + + return ( +
+
+