added Profile Page and Change password (also included breadcrumb

This commit is contained in:
2025-12-27 14:46:21 +07:00
parent bd71b27376
commit ba52869e8f
49 changed files with 11108 additions and 12778 deletions

View File

@@ -0,0 +1,18 @@
import { authMiddleware } from '@/lib/middleware'
import { createFileRoute, Outlet, redirect } from '@tanstack/react-router'
export const Route = createFileRoute('/(app)/(auth)')({
beforeLoad: async ({ context }) => {
if (!context.userSession) {
throw redirect({ to: '/sign-in' })
}
},
component: RouteComponent,
server: {
middleware: [authMiddleware],
},
})
function RouteComponent() {
return <Outlet />
}