|
|
|
@@ -0,0 +1,61 @@
|
|
|
|
|
// This file is auto-generated by Tuono
|
|
|
|
|
|
|
|
|
|
import { Route as rootRoute } from './routes/__root'
|
|
|
|
|
import { Route as AboutImport } from './routes/about'
|
|
|
|
|
import { Route as IndexImport } from './routes/index'
|
|
|
|
|
import { Route as PostsIndexImport } from './routes/posts/index'
|
|
|
|
|
import { Route as PostsPostSlugImport } from './routes/posts/post-slug'
|
|
|
|
|
|
|
|
|
|
// Create/Update Routes
|
|
|
|
|
|
|
|
|
|
const AboutRoute = AboutImport.update({
|
|
|
|
|
path: '/about',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
|
|
|
|
const IndexRoute = IndexImport.update({
|
|
|
|
|
path: '/',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
|
|
|
|
const PostsIndexRoute = PostsIndexImport.update({
|
|
|
|
|
path: '/posts/',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
|
|
|
|
const PostsPostSlugRoute = PostsPostSlugImport.update({
|
|
|
|
|
path: '/posts/post-slug',
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
} as any)
|
|
|
|
|
|
|
|
|
|
// Populate the FileRoutesByPath interface
|
|
|
|
|
|
|
|
|
|
declare module '@tanstack/react-router' {
|
|
|
|
|
interface FileRoutesByPath {
|
|
|
|
|
'/': {
|
|
|
|
|
preLoaderRoute: typeof IndexImport
|
|
|
|
|
parentRoute: typeof rootRoute
|
|
|
|
|
}
|
|
|
|
|
'/about': {
|
|
|
|
|
preLoaderRoute: typeof AboutImport
|
|
|
|
|
parentRoute: typeof rootRoute
|
|
|
|
|
}
|
|
|
|
|
'/posts/post-slug': {
|
|
|
|
|
preLoaderRoute: typeof PostsPostSlugImport
|
|
|
|
|
parentRoute: typeof rootRoute
|
|
|
|
|
}
|
|
|
|
|
'/posts/': {
|
|
|
|
|
preLoaderRoute: typeof PostsIndexImport
|
|
|
|
|
parentRoute: typeof rootRoute
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Create and export the route tree
|
|
|
|
|
|
|
|
|
|
export const routeTree = rootRoute.addChildren([
|
|
|
|
|
IndexRoute,
|
|
|
|
|
AboutRoute,
|
|
|
|
|
PostsPostSlugRoute,
|
|
|
|
|
PostsIndexRoute,
|
|
|
|
|
])
|