Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

routeConfig.ts

14 lines483 Bytes

1import { routeConfig as rootRoute } from './__root'
2import { routeConfig as indexRoute } from './index'
3import { routeConfig as postsRoute } from './posts'
4import { routeConfig as postsIndexRoute } from './posts/index'
5import { routeConfig as postspostIdRoute } from './posts/$postId'
6​
7export const routeConfig = rootRoute.addChildren([
8 indexRoute,
9 postsRoute.addChildren([
10 postsIndexRoute,
11 postspostIdRoute
12 ])
13])
14export type __GeneratedRouteConfig = typeof routeConfig