2024-05-01 19:40:53 +02:00
|
|
|
// This file is auto-generated by Tuono
|
|
|
|
|
|
2024-05-11 15:08:49 +02:00
|
|
|
import { createRoute } from 'tuono'
|
|
|
|
|
|
|
|
|
|
import RootImport from './routes/__root'
|
|
|
|
|
|
|
|
|
|
import AboutImport from './routes/about'
|
|
|
|
|
import IndexImport from './routes/index'
|
|
|
|
|
import PostsIndexImport from './routes/posts/index'
|
|
|
|
|
import PostsPostSlugImport from './routes/posts/post-slug'
|
|
|
|
|
|
|
|
|
|
const rootRoute = createRoute({ isRoot: true, component: RootImport })
|
|
|
|
|
|
|
|
|
|
const About = createRoute({ component: AboutImport })
|
|
|
|
|
const Index = createRoute({ component: IndexImport })
|
|
|
|
|
const PostsIndex = createRoute({ component: PostsIndexImport })
|
|
|
|
|
const PostsPostSlug = createRoute({ component: PostsPostSlugImport })
|
2024-05-01 19:40:53 +02:00
|
|
|
|
|
|
|
|
// Create/Update Routes
|
|
|
|
|
|
2024-05-11 15:08:49 +02:00
|
|
|
const AboutRoute = About.update({
|
2024-05-01 19:40:53 +02:00
|
|
|
path: '/about',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
2024-05-11 15:08:49 +02:00
|
|
|
const IndexRoute = Index.update({
|
2024-05-01 19:40:53 +02:00
|
|
|
path: '/',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
2024-05-11 15:08:49 +02:00
|
|
|
const PostsIndexRoute = PostsIndex.update({
|
2024-05-01 19:40:53 +02:00
|
|
|
path: '/posts/',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
2024-05-11 15:08:49 +02:00
|
|
|
const PostsPostSlugRoute = PostsPostSlug.update({
|
2024-05-01 19:40:53 +02:00
|
|
|
path: '/posts/post-slug',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
|
|
|
|
// Create and export the route tree
|
|
|
|
|
|
|
|
|
|
export const routeTree = rootRoute.addChildren([
|
|
|
|
|
IndexRoute,
|
|
|
|
|
AboutRoute,
|
|
|
|
|
PostsPostSlugRoute,
|
|
|
|
|
PostsIndexRoute,
|
|
|
|
|
])
|