first commit

This commit is contained in:
Your NamebaishaliHolocron
2026-06-15 12:57:03 +05:30
commit b9ac5ae0b2
398 changed files with 49583 additions and 0 deletions

16
frontend/app/page.tsx Normal file
View File

@@ -0,0 +1,16 @@
"use client";
import { useEffect } from "react";
import { useRouter } from "next/navigation";
export default function RootPage() {
const router = useRouter();
useEffect(() => {
const hasToken = document.cookie.includes("accessToken");
if (!hasToken) {
window.location.href = "/login.html";
} else {
router.push("/main/overview/dashboard");
}
}, [router]);
}