// This file is auto-generated by Tuono import { createRoute, __tuono__internal__lazyLoadRoute } from 'tuono' import RootLayoutImport from './routes/__layout' const PostslayoutImport = __tuono__internal__lazyLoadRoute( () => import('./routes/posts/__layout'), ) const AboutImport = __tuono__internal__lazyLoadRoute( () => import('./routes/about'), ) const IndexImport = __tuono__internal__lazyLoadRoute( () => import('./routes/index'), ) const PostspostImport = __tuono__internal__lazyLoadRoute( () => import('./routes/posts/[post]'), ) const PostsIndexImport = __tuono__internal__lazyLoadRoute( () => import('./routes/posts/index'), ) const PostsMyPostImport = __tuono__internal__lazyLoadRoute( () => import('./routes/posts/my-post'), ) const rootRoute = createRoute({ isRoot: true, component: RootLayoutImport }) const Postslayout = createRoute({ component: PostslayoutImport, isRoot: true }) const About = createRoute({ component: AboutImport }) const Index = createRoute({ component: IndexImport }) const Postspost = createRoute({ component: PostspostImport }) const PostsIndex = createRoute({ component: PostsIndexImport }) const PostsMyPost = createRoute({ component: PostsMyPostImport }) // Create/Update Routes const PostslayoutRoute = Postslayout.update({ getParentRoute: () => rootRoute, }) const AboutRoute = About.update({ path: '/about', getParentRoute: () => rootRoute, }) const IndexRoute = Index.update({ path: '/', getParentRoute: () => rootRoute, }) const PostspostRoute = Postspost.update({ path: '/posts/[post]', getParentRoute: () => PostslayoutRoute, }) const PostsIndexRoute = PostsIndex.update({ path: '/posts', getParentRoute: () => PostslayoutRoute, }) const PostsMyPostRoute = PostsMyPost.update({ path: '/posts/my-post', getParentRoute: () => PostslayoutRoute, }) // Create and export the route tree export const routeTree = rootRoute.addChildren([ IndexRoute, AboutRoute, PostslayoutRoute.addChildren([ PostsMyPostRoute, PostsIndexRoute, PostspostRoute, ]), PostsMyPostRoute, PostsIndexRoute, PostspostRoute, ])