first commit

This commit is contained in:
Space
2026-01-17 13:37:57 +01:00
commit 3e34d84a29
49 changed files with 8579 additions and 0 deletions

18
app/routes/home.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { useEffect } from "react";
import { useNavigate } from "react-router";
import { api } from "~/api/client";
export default function Home() {
const navigate = useNavigate();
useEffect(() => {
// Redirect to dashboard if authenticated, otherwise to login
if (api.isAuthenticated()) {
navigate("/dashboard");
} else {
navigate("/login");
}
}, [navigate]);
return null;
}