1010
1111// Import Routes
1212
13- import { Route as rootRoute } from "./routes/__root" ;
14- import { Route as IndexImport } from "./routes/index" ;
15- import { Route as WorkspaceWorkspaceIdImport } from "./routes/workspace/$workspaceId" ;
13+ import { Route as rootRoute } from './routes/__root'
14+ import { Route as IndexImport } from './routes/index'
15+ import { Route as JoinIndexImport } from './routes/join/index'
16+ import { Route as WorkspaceWorkspaceIdImport } from './routes/workspace/$workspaceId'
1617
1718// Create/Update Routes
1819
1920const IndexRoute = IndexImport . update ( {
20- id : "/" ,
21- path : "/" ,
21+ id : '/' ,
22+ path : '/' ,
2223 getParentRoute : ( ) => rootRoute ,
23- } as any ) ;
24+ } as any )
25+
26+ const JoinIndexRoute = JoinIndexImport . update ( {
27+ id : '/join/' ,
28+ path : '/join/' ,
29+ getParentRoute : ( ) => rootRoute ,
30+ } as any )
2431
2532const WorkspaceWorkspaceIdRoute = WorkspaceWorkspaceIdImport . update ( {
26- id : " /workspace/$workspaceId" ,
27- path : " /workspace/$workspaceId" ,
33+ id : ' /workspace/$workspaceId' ,
34+ path : ' /workspace/$workspaceId' ,
2835 getParentRoute : ( ) => rootRoute ,
29- } as any ) ;
36+ } as any )
3037
3138// Populate the FileRoutesByPath interface
3239
33- declare module " @tanstack/react-router" {
40+ declare module ' @tanstack/react-router' {
3441 interface FileRoutesByPath {
35- "/" : {
36- id : "/" ;
37- path : "/" ;
38- fullPath : "/" ;
39- preLoaderRoute : typeof IndexImport ;
40- parentRoute : typeof rootRoute ;
41- } ;
42- "/workspace/$workspaceId" : {
43- id : "/workspace/$workspaceId" ;
44- path : "/workspace/$workspaceId" ;
45- fullPath : "/workspace/$workspaceId" ;
46- preLoaderRoute : typeof WorkspaceWorkspaceIdImport ;
47- parentRoute : typeof rootRoute ;
48- } ;
42+ '/' : {
43+ id : '/'
44+ path : '/'
45+ fullPath : '/'
46+ preLoaderRoute : typeof IndexImport
47+ parentRoute : typeof rootRoute
48+ }
49+ '/workspace/$workspaceId' : {
50+ id : '/workspace/$workspaceId'
51+ path : '/workspace/$workspaceId'
52+ fullPath : '/workspace/$workspaceId'
53+ preLoaderRoute : typeof WorkspaceWorkspaceIdImport
54+ parentRoute : typeof rootRoute
55+ }
56+ '/join/' : {
57+ id : '/join/'
58+ path : '/join'
59+ fullPath : '/join'
60+ preLoaderRoute : typeof JoinIndexImport
61+ parentRoute : typeof rootRoute
62+ }
4963 }
5064}
5165
5266// Create and export the route tree
5367
5468export interface FileRoutesByFullPath {
55- "/" : typeof IndexRoute ;
56- "/workspace/$workspaceId" : typeof WorkspaceWorkspaceIdRoute ;
69+ '/' : typeof IndexRoute
70+ '/workspace/$workspaceId' : typeof WorkspaceWorkspaceIdRoute
71+ '/join' : typeof JoinIndexRoute
5772}
5873
5974export interface FileRoutesByTo {
60- "/" : typeof IndexRoute ;
61- "/workspace/$workspaceId" : typeof WorkspaceWorkspaceIdRoute ;
75+ '/' : typeof IndexRoute
76+ '/workspace/$workspaceId' : typeof WorkspaceWorkspaceIdRoute
77+ '/join' : typeof JoinIndexRoute
6278}
6379
6480export interface FileRoutesById {
65- __root__ : typeof rootRoute ;
66- "/" : typeof IndexRoute ;
67- "/workspace/$workspaceId" : typeof WorkspaceWorkspaceIdRoute ;
81+ __root__ : typeof rootRoute
82+ '/' : typeof IndexRoute
83+ '/workspace/$workspaceId' : typeof WorkspaceWorkspaceIdRoute
84+ '/join/' : typeof JoinIndexRoute
6885}
6986
7087export interface FileRouteTypes {
71- fileRoutesByFullPath : FileRoutesByFullPath ;
72- fullPaths : "/" | " /workspace/$workspaceId" ;
73- fileRoutesByTo : FileRoutesByTo ;
74- to : "/" | " /workspace/$workspaceId" ;
75- id : " __root__" | "/" | " /workspace/$workspaceId" ;
76- fileRoutesById : FileRoutesById ;
88+ fileRoutesByFullPath : FileRoutesByFullPath
89+ fullPaths : '/' | ' /workspace/$workspaceId' | '/join'
90+ fileRoutesByTo : FileRoutesByTo
91+ to : '/' | ' /workspace/$workspaceId' | '/join'
92+ id : ' __root__' | '/' | ' /workspace/$workspaceId' | '/join/'
93+ fileRoutesById : FileRoutesById
7794}
7895
7996export interface RootRouteChildren {
80- IndexRoute : typeof IndexRoute ;
81- WorkspaceWorkspaceIdRoute : typeof WorkspaceWorkspaceIdRoute ;
97+ IndexRoute : typeof IndexRoute
98+ WorkspaceWorkspaceIdRoute : typeof WorkspaceWorkspaceIdRoute
99+ JoinIndexRoute : typeof JoinIndexRoute
82100}
83101
84102const rootRouteChildren : RootRouteChildren = {
85103 IndexRoute : IndexRoute ,
86104 WorkspaceWorkspaceIdRoute : WorkspaceWorkspaceIdRoute ,
87- } ;
105+ JoinIndexRoute : JoinIndexRoute ,
106+ }
88107
89108export const routeTree = rootRoute
90109 . _addFileChildren ( rootRouteChildren )
91- . _addFileTypes < FileRouteTypes > ( ) ;
110+ . _addFileTypes < FileRouteTypes > ( )
92111
93112/* ROUTE_MANIFEST_START
94113{
@@ -97,14 +116,18 @@ export const routeTree = rootRoute
97116 "filePath": "__root.tsx",
98117 "children": [
99118 "/",
100- "/workspace/$workspaceId"
119+ "/workspace/$workspaceId",
120+ "/join/"
101121 ]
102122 },
103123 "/": {
104124 "filePath": "index.tsx"
105125 },
106126 "/workspace/$workspaceId": {
107127 "filePath": "workspace/$workspaceId.tsx"
128+ },
129+ "/join/": {
130+ "filePath": "join/index.tsx"
108131 }
109132 }
110133}
0 commit comments