1111// Import Routes
1212
1313import { Route as rootRoute } from './routes/__root'
14- import { Route as WorkspaceIdImport } from './routes/$workspaceId'
1514import { Route as IndexImport } from './routes/index'
15+ import { Route as WorkspaceIdIndexImport } from './routes/$workspaceId/index'
16+ import { Route as WorkspaceIdTokenImport } from './routes/$workspaceId/token'
1617
1718// Create/Update Routes
1819
19- const WorkspaceIdRoute = WorkspaceIdImport . update ( {
20- id : '/$workspaceId' ,
21- path : '/$workspaceId' ,
22- getParentRoute : ( ) => rootRoute ,
23- } as any )
24-
2520const IndexRoute = IndexImport . update ( {
2621 id : '/' ,
2722 path : '/' ,
2823 getParentRoute : ( ) => rootRoute ,
2924} as any )
3025
26+ const WorkspaceIdIndexRoute = WorkspaceIdIndexImport . update ( {
27+ id : '/$workspaceId/' ,
28+ path : '/$workspaceId/' ,
29+ getParentRoute : ( ) => rootRoute ,
30+ } as any )
31+
32+ const WorkspaceIdTokenRoute = WorkspaceIdTokenImport . update ( {
33+ id : '/$workspaceId/token' ,
34+ path : '/$workspaceId/token' ,
35+ getParentRoute : ( ) => rootRoute ,
36+ } as any )
37+
3138// Populate the FileRoutesByPath interface
3239
3340declare module '@tanstack/react-router' {
@@ -39,11 +46,18 @@ declare module '@tanstack/react-router' {
3946 preLoaderRoute : typeof IndexImport
4047 parentRoute : typeof rootRoute
4148 }
42- '/$workspaceId' : {
43- id : '/$workspaceId'
49+ '/$workspaceId/token' : {
50+ id : '/$workspaceId/token'
51+ path : '/$workspaceId/token'
52+ fullPath : '/$workspaceId/token'
53+ preLoaderRoute : typeof WorkspaceIdTokenImport
54+ parentRoute : typeof rootRoute
55+ }
56+ '/$workspaceId/' : {
57+ id : '/$workspaceId/'
4458 path : '/$workspaceId'
4559 fullPath : '/$workspaceId'
46- preLoaderRoute : typeof WorkspaceIdImport
60+ preLoaderRoute : typeof WorkspaceIdIndexImport
4761 parentRoute : typeof rootRoute
4862 }
4963 }
@@ -53,37 +67,42 @@ declare module '@tanstack/react-router' {
5367
5468export interface FileRoutesByFullPath {
5569 '/' : typeof IndexRoute
56- '/$workspaceId' : typeof WorkspaceIdRoute
70+ '/$workspaceId/token' : typeof WorkspaceIdTokenRoute
71+ '/$workspaceId' : typeof WorkspaceIdIndexRoute
5772}
5873
5974export interface FileRoutesByTo {
6075 '/' : typeof IndexRoute
61- '/$workspaceId' : typeof WorkspaceIdRoute
76+ '/$workspaceId/token' : typeof WorkspaceIdTokenRoute
77+ '/$workspaceId' : typeof WorkspaceIdIndexRoute
6278}
6379
6480export interface FileRoutesById {
6581 __root__ : typeof rootRoute
6682 '/' : typeof IndexRoute
67- '/$workspaceId' : typeof WorkspaceIdRoute
83+ '/$workspaceId/token' : typeof WorkspaceIdTokenRoute
84+ '/$workspaceId/' : typeof WorkspaceIdIndexRoute
6885}
6986
7087export interface FileRouteTypes {
7188 fileRoutesByFullPath : FileRoutesByFullPath
72- fullPaths : '/' | '/$workspaceId'
89+ fullPaths : '/' | '/$workspaceId/token' | '/$workspaceId '
7390 fileRoutesByTo : FileRoutesByTo
74- to : '/' | '/$workspaceId'
75- id : '__root__' | '/' | '/$workspaceId'
91+ to : '/' | '/$workspaceId/token' | '/$workspaceId '
92+ id : '__root__' | '/' | '/$workspaceId/token' | '/$workspaceId/ '
7693 fileRoutesById : FileRoutesById
7794}
7895
7996export interface RootRouteChildren {
8097 IndexRoute : typeof IndexRoute
81- WorkspaceIdRoute : typeof WorkspaceIdRoute
98+ WorkspaceIdTokenRoute : typeof WorkspaceIdTokenRoute
99+ WorkspaceIdIndexRoute : typeof WorkspaceIdIndexRoute
82100}
83101
84102const rootRouteChildren : RootRouteChildren = {
85103 IndexRoute : IndexRoute ,
86- WorkspaceIdRoute : WorkspaceIdRoute ,
104+ WorkspaceIdTokenRoute : WorkspaceIdTokenRoute ,
105+ WorkspaceIdIndexRoute : WorkspaceIdIndexRoute ,
87106}
88107
89108export const routeTree = rootRoute
@@ -97,14 +116,18 @@ export const routeTree = rootRoute
97116 "filePath": "__root.tsx",
98117 "children": [
99118 "/",
100- "/$workspaceId"
119+ "/$workspaceId/token",
120+ "/$workspaceId/"
101121 ]
102122 },
103123 "/": {
104124 "filePath": "index.tsx"
105125 },
106- "/$workspaceId": {
107- "filePath": "$workspaceId.tsx"
126+ "/$workspaceId/token": {
127+ "filePath": "$workspaceId/token.tsx"
128+ },
129+ "/$workspaceId/": {
130+ "filePath": "$workspaceId/index.tsx"
108131 }
109132 }
110133}
0 commit comments