@@ -15,8 +15,10 @@ import { Route as LogoutRouteImport } from './routes/logout'
15
15
import { Route as DeferredRouteImport } from './routes/deferred'
16
16
import { Route as IndexRouteImport } from './routes/index'
17
17
import { Route as UsersIndexRouteImport } from './routes/users.index'
18
+ import { Route as RedirectIndexRouteImport } from './routes/redirect/index'
18
19
import { Route as PostsIndexRouteImport } from './routes/posts.index'
19
20
import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
21
+ import { Route as RedirectThrowItRouteImport } from './routes/redirect/throw-it'
20
22
import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
21
23
import { Route as ApiUsersRouteImport } from './routes/api.users'
22
24
import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
@@ -52,6 +54,11 @@ const UsersIndexRoute = UsersIndexRouteImport.update({
52
54
path : '/' ,
53
55
getParentRoute : ( ) => UsersRoute ,
54
56
} as any )
57
+ const RedirectIndexRoute = RedirectIndexRouteImport . update ( {
58
+ id : '/redirect/' ,
59
+ path : '/redirect/' ,
60
+ getParentRoute : ( ) => rootRouteImport ,
61
+ } as any )
55
62
const PostsIndexRoute = PostsIndexRouteImport . update ( {
56
63
id : '/' ,
57
64
path : '/' ,
@@ -62,6 +69,11 @@ const UsersUserIdRoute = UsersUserIdRouteImport.update({
62
69
path : '/$userId' ,
63
70
getParentRoute : ( ) => UsersRoute ,
64
71
} as any )
72
+ const RedirectThrowItRoute = RedirectThrowItRouteImport . update ( {
73
+ id : '/redirect/throw-it' ,
74
+ path : '/redirect/throw-it' ,
75
+ getParentRoute : ( ) => rootRouteImport ,
76
+ } as any )
65
77
const PostsPostIdRoute = PostsPostIdRouteImport . update ( {
66
78
id : '/$postId' ,
67
79
path : '/$postId' ,
@@ -91,8 +103,10 @@ export interface FileRoutesByFullPath {
91
103
'/users' : typeof UsersRouteWithChildren
92
104
'/api/users' : typeof ApiUsersRouteWithChildren
93
105
'/posts/$postId' : typeof PostsPostIdRoute
106
+ '/redirect/throw-it' : typeof RedirectThrowItRoute
94
107
'/users/$userId' : typeof UsersUserIdRoute
95
108
'/posts/' : typeof PostsIndexRoute
109
+ '/redirect' : typeof RedirectIndexRoute
96
110
'/users/' : typeof UsersIndexRoute
97
111
'/api/users/$id' : typeof ApiUsersIdRoute
98
112
'/posts/$postId/deep' : typeof PostsPostIdDeepRoute
@@ -103,8 +117,10 @@ export interface FileRoutesByTo {
103
117
'/logout' : typeof LogoutRoute
104
118
'/api/users' : typeof ApiUsersRouteWithChildren
105
119
'/posts/$postId' : typeof PostsPostIdRoute
120
+ '/redirect/throw-it' : typeof RedirectThrowItRoute
106
121
'/users/$userId' : typeof UsersUserIdRoute
107
122
'/posts' : typeof PostsIndexRoute
123
+ '/redirect' : typeof RedirectIndexRoute
108
124
'/users' : typeof UsersIndexRoute
109
125
'/api/users/$id' : typeof ApiUsersIdRoute
110
126
'/posts/$postId/deep' : typeof PostsPostIdDeepRoute
@@ -118,8 +134,10 @@ export interface FileRoutesById {
118
134
'/users' : typeof UsersRouteWithChildren
119
135
'/api/users' : typeof ApiUsersRouteWithChildren
120
136
'/posts/$postId' : typeof PostsPostIdRoute
137
+ '/redirect/throw-it' : typeof RedirectThrowItRoute
121
138
'/users/$userId' : typeof UsersUserIdRoute
122
139
'/posts/' : typeof PostsIndexRoute
140
+ '/redirect/' : typeof RedirectIndexRoute
123
141
'/users/' : typeof UsersIndexRoute
124
142
'/api/users/$id' : typeof ApiUsersIdRoute
125
143
'/posts_/$postId/deep' : typeof PostsPostIdDeepRoute
@@ -134,8 +152,10 @@ export interface FileRouteTypes {
134
152
| '/users'
135
153
| '/api/users'
136
154
| '/posts/$postId'
155
+ | '/redirect/throw-it'
137
156
| '/users/$userId'
138
157
| '/posts/'
158
+ | '/redirect'
139
159
| '/users/'
140
160
| '/api/users/$id'
141
161
| '/posts/$postId/deep'
@@ -146,8 +166,10 @@ export interface FileRouteTypes {
146
166
| '/logout'
147
167
| '/api/users'
148
168
| '/posts/$postId'
169
+ | '/redirect/throw-it'
149
170
| '/users/$userId'
150
171
| '/posts'
172
+ | '/redirect'
151
173
| '/users'
152
174
| '/api/users/$id'
153
175
| '/posts/$postId/deep'
@@ -160,8 +182,10 @@ export interface FileRouteTypes {
160
182
| '/users'
161
183
| '/api/users'
162
184
| '/posts/$postId'
185
+ | '/redirect/throw-it'
163
186
| '/users/$userId'
164
187
| '/posts/'
188
+ | '/redirect/'
165
189
| '/users/'
166
190
| '/api/users/$id'
167
191
| '/posts_/$postId/deep'
@@ -174,6 +198,8 @@ export interface RootRouteChildren {
174
198
PostsRoute : typeof PostsRouteWithChildren
175
199
UsersRoute : typeof UsersRouteWithChildren
176
200
ApiUsersRoute : typeof ApiUsersRouteWithChildren
201
+ RedirectThrowItRoute : typeof RedirectThrowItRoute
202
+ RedirectIndexRoute : typeof RedirectIndexRoute
177
203
PostsPostIdDeepRoute : typeof PostsPostIdDeepRoute
178
204
}
179
205
@@ -221,6 +247,13 @@ declare module '@tanstack/react-router' {
221
247
preLoaderRoute : typeof UsersIndexRouteImport
222
248
parentRoute : typeof UsersRoute
223
249
}
250
+ '/redirect/' : {
251
+ id : '/redirect/'
252
+ path : '/redirect'
253
+ fullPath : '/redirect'
254
+ preLoaderRoute : typeof RedirectIndexRouteImport
255
+ parentRoute : typeof rootRouteImport
256
+ }
224
257
'/posts/' : {
225
258
id : '/posts/'
226
259
path : '/'
@@ -235,6 +268,13 @@ declare module '@tanstack/react-router' {
235
268
preLoaderRoute : typeof UsersUserIdRouteImport
236
269
parentRoute : typeof UsersRoute
237
270
}
271
+ '/redirect/throw-it' : {
272
+ id : '/redirect/throw-it'
273
+ path : '/redirect/throw-it'
274
+ fullPath : '/redirect/throw-it'
275
+ preLoaderRoute : typeof RedirectThrowItRouteImport
276
+ parentRoute : typeof rootRouteImport
277
+ }
238
278
'/posts/$postId' : {
239
279
id : '/posts/$postId'
240
280
path : '/$postId'
@@ -309,6 +349,8 @@ const rootRouteChildren: RootRouteChildren = {
309
349
PostsRoute : PostsRouteWithChildren ,
310
350
UsersRoute : UsersRouteWithChildren ,
311
351
ApiUsersRoute : ApiUsersRouteWithChildren ,
352
+ RedirectThrowItRoute : RedirectThrowItRoute ,
353
+ RedirectIndexRoute : RedirectIndexRoute ,
312
354
PostsPostIdDeepRoute : PostsPostIdDeepRoute ,
313
355
}
314
356
export const routeTree = rootRouteImport
0 commit comments