// 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, filePath: '/posts/__layout', }) const AboutRoute = About.update({ path: '/about', getParentRoute: () => rootRoute, filePath: '/about', }) const IndexRoute = Index.update({ path: '/', getParentRoute: () => rootRoute, filePath: '/', }) const PostspostRoute = Postspost.update({ path: '/posts/[post]', getParentRoute: () => PostslayoutRoute, filePath: '/posts/[post]', }) const PostsIndexRoute = PostsIndex.update({ path: '/posts', getParentRoute: () => PostslayoutRoute, filePath: '/posts/', }) const PostsMyPostRoute = PostsMyPost.update({ path: '/posts/my-post', getParentRoute: () => PostslayoutRoute, filePath: '/posts/my-post', }) // Create and export the route tree export const routeTree = rootRoute.addChildren([ IndexRoute, AboutRoute, PostslayoutRoute.addChildren([ PostsMyPostRoute, PostsIndexRoute, PostspostRoute, ]), PostsMyPostRoute, PostsIndexRoute, PostspostRoute, ])