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.
16 lines
282 B
TypeScript
16 lines
282 B
TypeScript
import { createRootRoute, Outlet } from '@tanstack/react-router'
|
|
import { Toaster } from 'sonner'
|
|
|
|
export const Route = createRootRoute({
|
|
component: RootLayout,
|
|
})
|
|
|
|
function RootLayout() {
|
|
return (
|
|
<>
|
|
<Outlet />
|
|
<Toaster position="bottom-right" />
|
|
</>
|
|
)
|
|
}
|