Sets up the admin frontend with login page, auth guard, API client, Zustand auth store, and all shadcn/ui components. Vite proxies /v1 to backend in dev.
8 lines
197 B
TypeScript
8 lines
197 B
TypeScript
import { createFileRoute, redirect } from '@tanstack/react-router'
|
|
|
|
export const Route = createFileRoute('/_authenticated/')({
|
|
beforeLoad: () => {
|
|
throw redirect({ to: '/accounts' })
|
|
},
|
|
})
|