feat(eom): frame work added in for eom
This commit is contained in:
13
frontend/src/routes/_eom.tsx
Normal file
13
frontend/src/routes/_eom.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import {createFileRoute, redirect} from "@tanstack/react-router";
|
||||
|
||||
export const Route = createFileRoute("/_eom")({
|
||||
//component: RouteComponent,
|
||||
beforeLoad: async () => {
|
||||
const auth = localStorage.getItem("auth_token");
|
||||
if (!auth) {
|
||||
throw redirect({
|
||||
to: "/login",
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user