first commit

This commit is contained in:
luoyangwei
2026-06-06 00:49:07 +08:00
commit 2b860d201e
134 changed files with 22773 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { auth } from "@/lib/auth";
import { redirect } from "next/navigation";
export default async function ProtectedAdminLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const session = await auth();
if (!session) {
redirect("/admin/login");
}
return children;
}