1212
1313import { Route as rootRoute } from './routes/__root'
1414import { Route as IndexImport } from './routes/index'
15- import { Route as MainExampleIndexImport } from './routes/main-example /index'
16- import { Route as MainExampleIdImport } from './routes/main-example /$id'
15+ import { Route as MainIndexImport } from './routes/main/index'
16+ import { Route as MainIdImport } from './routes/main/$id'
1717
1818// Create/Update Routes
1919
@@ -23,15 +23,15 @@ const IndexRoute = IndexImport.update({
2323 getParentRoute : ( ) => rootRoute ,
2424} as any )
2525
26- const MainExampleIndexRoute = MainExampleIndexImport . update ( {
27- id : '/main-example /' ,
28- path : '/main-example /' ,
26+ const MainIndexRoute = MainIndexImport . update ( {
27+ id : '/main/' ,
28+ path : '/main/' ,
2929 getParentRoute : ( ) => rootRoute ,
3030} as any )
3131
32- const MainExampleIdRoute = MainExampleIdImport . update ( {
33- id : '/main-example /$id' ,
34- path : '/main-example /$id' ,
32+ const MainIdRoute = MainIdImport . update ( {
33+ id : '/main/$id' ,
34+ path : '/main/$id' ,
3535 getParentRoute : ( ) => rootRoute ,
3636} as any )
3737
@@ -46,18 +46,18 @@ declare module '@tanstack/react-router' {
4646 preLoaderRoute : typeof IndexImport
4747 parentRoute : typeof rootRoute
4848 }
49- '/main-example /$id' : {
50- id : '/main-example /$id'
51- path : '/main-example /$id'
52- fullPath : '/main-example /$id'
53- preLoaderRoute : typeof MainExampleIdImport
49+ '/main/$id' : {
50+ id : '/main/$id'
51+ path : '/main/$id'
52+ fullPath : '/main/$id'
53+ preLoaderRoute : typeof MainIdImport
5454 parentRoute : typeof rootRoute
5555 }
56- '/main-example /' : {
57- id : '/main-example /'
58- path : '/main-example '
59- fullPath : '/main-example '
60- preLoaderRoute : typeof MainExampleIndexImport
56+ '/main/' : {
57+ id : '/main/'
58+ path : '/main'
59+ fullPath : '/main'
60+ preLoaderRoute : typeof MainIndexImport
6161 parentRoute : typeof rootRoute
6262 }
6363 }
@@ -67,42 +67,42 @@ declare module '@tanstack/react-router' {
6767
6868export interface FileRoutesByFullPath {
6969 '/' : typeof IndexRoute
70- '/main-example /$id' : typeof MainExampleIdRoute
71- '/main-example ' : typeof MainExampleIndexRoute
70+ '/main/$id' : typeof MainIdRoute
71+ '/main' : typeof MainIndexRoute
7272}
7373
7474export interface FileRoutesByTo {
7575 '/' : typeof IndexRoute
76- '/main-example /$id' : typeof MainExampleIdRoute
77- '/main-example ' : typeof MainExampleIndexRoute
76+ '/main/$id' : typeof MainIdRoute
77+ '/main' : typeof MainIndexRoute
7878}
7979
8080export interface FileRoutesById {
8181 __root__ : typeof rootRoute
8282 '/' : typeof IndexRoute
83- '/main-example /$id' : typeof MainExampleIdRoute
84- '/main-example /' : typeof MainExampleIndexRoute
83+ '/main/$id' : typeof MainIdRoute
84+ '/main/' : typeof MainIndexRoute
8585}
8686
8787export interface FileRouteTypes {
8888 fileRoutesByFullPath : FileRoutesByFullPath
89- fullPaths : '/' | '/main-example /$id' | '/main-example '
89+ fullPaths : '/' | '/main/$id' | '/main'
9090 fileRoutesByTo : FileRoutesByTo
91- to : '/' | '/main-example /$id' | '/main-example '
92- id : '__root__' | '/' | '/main-example /$id' | '/main-example /'
91+ to : '/' | '/main/$id' | '/main'
92+ id : '__root__' | '/' | '/main/$id' | '/main/'
9393 fileRoutesById : FileRoutesById
9494}
9595
9696export interface RootRouteChildren {
9797 IndexRoute : typeof IndexRoute
98- MainExampleIdRoute : typeof MainExampleIdRoute
99- MainExampleIndexRoute : typeof MainExampleIndexRoute
98+ MainIdRoute : typeof MainIdRoute
99+ MainIndexRoute : typeof MainIndexRoute
100100}
101101
102102const rootRouteChildren : RootRouteChildren = {
103103 IndexRoute : IndexRoute ,
104- MainExampleIdRoute : MainExampleIdRoute ,
105- MainExampleIndexRoute : MainExampleIndexRoute ,
104+ MainIdRoute : MainIdRoute ,
105+ MainIndexRoute : MainIndexRoute ,
106106}
107107
108108export const routeTree = rootRoute
@@ -116,18 +116,18 @@ export const routeTree = rootRoute
116116 "filePath": "__root.tsx",
117117 "children": [
118118 "/",
119- "/main-example /$id",
120- "/main-example /"
119+ "/main/$id",
120+ "/main/"
121121 ]
122122 },
123123 "/": {
124124 "filePath": "index.tsx"
125125 },
126- "/main-example /$id": {
127- "filePath": "main-example /$id.tsx"
126+ "/main/$id": {
127+ "filePath": "main/$id.tsx"
128128 },
129- "/main-example /": {
130- "filePath": "main-example /index.tsx"
129+ "/main/": {
130+ "filePath": "main/index.tsx"
131131 }
132132 }
133133}
0 commit comments