@@ -15,8 +15,10 @@ import { Route as LogoutRouteImport } from './routes/logout'
1515import { Route as DeferredRouteImport } from './routes/deferred'
1616import { Route as IndexRouteImport } from './routes/index'
1717import { Route as UsersIndexRouteImport } from './routes/users.index'
18+ import { Route as RedirectIndexRouteImport } from './routes/redirect/index'
1819import { Route as PostsIndexRouteImport } from './routes/posts.index'
1920import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
21+ import { Route as RedirectThrowItRouteImport } from './routes/redirect/throw-it'
2022import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
2123import { Route as ApiUsersRouteImport } from './routes/api.users'
2224import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
@@ -52,6 +54,11 @@ const UsersIndexRoute = UsersIndexRouteImport.update({
5254 path : '/' ,
5355 getParentRoute : ( ) => UsersRoute ,
5456} as any )
57+ const RedirectIndexRoute = RedirectIndexRouteImport . update ( {
58+ id : '/redirect/' ,
59+ path : '/redirect/' ,
60+ getParentRoute : ( ) => rootRouteImport ,
61+ } as any )
5562const PostsIndexRoute = PostsIndexRouteImport . update ( {
5663 id : '/' ,
5764 path : '/' ,
@@ -62,6 +69,11 @@ const UsersUserIdRoute = UsersUserIdRouteImport.update({
6269 path : '/$userId' ,
6370 getParentRoute : ( ) => UsersRoute ,
6471} as any )
72+ const RedirectThrowItRoute = RedirectThrowItRouteImport . update ( {
73+ id : '/redirect/throw-it' ,
74+ path : '/redirect/throw-it' ,
75+ getParentRoute : ( ) => rootRouteImport ,
76+ } as any )
6577const PostsPostIdRoute = PostsPostIdRouteImport . update ( {
6678 id : '/$postId' ,
6779 path : '/$postId' ,
@@ -91,8 +103,10 @@ export interface FileRoutesByFullPath {
91103 '/users' : typeof UsersRouteWithChildren
92104 '/api/users' : typeof ApiUsersRouteWithChildren
93105 '/posts/$postId' : typeof PostsPostIdRoute
106+ '/redirect/throw-it' : typeof RedirectThrowItRoute
94107 '/users/$userId' : typeof UsersUserIdRoute
95108 '/posts/' : typeof PostsIndexRoute
109+ '/redirect' : typeof RedirectIndexRoute
96110 '/users/' : typeof UsersIndexRoute
97111 '/api/users/$id' : typeof ApiUsersIdRoute
98112 '/posts/$postId/deep' : typeof PostsPostIdDeepRoute
@@ -103,8 +117,10 @@ export interface FileRoutesByTo {
103117 '/logout' : typeof LogoutRoute
104118 '/api/users' : typeof ApiUsersRouteWithChildren
105119 '/posts/$postId' : typeof PostsPostIdRoute
120+ '/redirect/throw-it' : typeof RedirectThrowItRoute
106121 '/users/$userId' : typeof UsersUserIdRoute
107122 '/posts' : typeof PostsIndexRoute
123+ '/redirect' : typeof RedirectIndexRoute
108124 '/users' : typeof UsersIndexRoute
109125 '/api/users/$id' : typeof ApiUsersIdRoute
110126 '/posts/$postId/deep' : typeof PostsPostIdDeepRoute
@@ -118,8 +134,10 @@ export interface FileRoutesById {
118134 '/users' : typeof UsersRouteWithChildren
119135 '/api/users' : typeof ApiUsersRouteWithChildren
120136 '/posts/$postId' : typeof PostsPostIdRoute
137+ '/redirect/throw-it' : typeof RedirectThrowItRoute
121138 '/users/$userId' : typeof UsersUserIdRoute
122139 '/posts/' : typeof PostsIndexRoute
140+ '/redirect/' : typeof RedirectIndexRoute
123141 '/users/' : typeof UsersIndexRoute
124142 '/api/users/$id' : typeof ApiUsersIdRoute
125143 '/posts_/$postId/deep' : typeof PostsPostIdDeepRoute
@@ -134,8 +152,10 @@ export interface FileRouteTypes {
134152 | '/users'
135153 | '/api/users'
136154 | '/posts/$postId'
155+ | '/redirect/throw-it'
137156 | '/users/$userId'
138157 | '/posts/'
158+ | '/redirect'
139159 | '/users/'
140160 | '/api/users/$id'
141161 | '/posts/$postId/deep'
@@ -146,8 +166,10 @@ export interface FileRouteTypes {
146166 | '/logout'
147167 | '/api/users'
148168 | '/posts/$postId'
169+ | '/redirect/throw-it'
149170 | '/users/$userId'
150171 | '/posts'
172+ | '/redirect'
151173 | '/users'
152174 | '/api/users/$id'
153175 | '/posts/$postId/deep'
@@ -160,8 +182,10 @@ export interface FileRouteTypes {
160182 | '/users'
161183 | '/api/users'
162184 | '/posts/$postId'
185+ | '/redirect/throw-it'
163186 | '/users/$userId'
164187 | '/posts/'
188+ | '/redirect/'
165189 | '/users/'
166190 | '/api/users/$id'
167191 | '/posts_/$postId/deep'
@@ -174,6 +198,8 @@ export interface RootRouteChildren {
174198 PostsRoute : typeof PostsRouteWithChildren
175199 UsersRoute : typeof UsersRouteWithChildren
176200 ApiUsersRoute : typeof ApiUsersRouteWithChildren
201+ RedirectThrowItRoute : typeof RedirectThrowItRoute
202+ RedirectIndexRoute : typeof RedirectIndexRoute
177203 PostsPostIdDeepRoute : typeof PostsPostIdDeepRoute
178204}
179205
@@ -221,6 +247,13 @@ declare module '@tanstack/react-router' {
221247 preLoaderRoute : typeof UsersIndexRouteImport
222248 parentRoute : typeof UsersRoute
223249 }
250+ '/redirect/' : {
251+ id : '/redirect/'
252+ path : '/redirect'
253+ fullPath : '/redirect'
254+ preLoaderRoute : typeof RedirectIndexRouteImport
255+ parentRoute : typeof rootRouteImport
256+ }
224257 '/posts/' : {
225258 id : '/posts/'
226259 path : '/'
@@ -235,6 +268,13 @@ declare module '@tanstack/react-router' {
235268 preLoaderRoute : typeof UsersUserIdRouteImport
236269 parentRoute : typeof UsersRoute
237270 }
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+ }
238278 '/posts/$postId' : {
239279 id : '/posts/$postId'
240280 path : '/$postId'
@@ -309,6 +349,8 @@ const rootRouteChildren: RootRouteChildren = {
309349 PostsRoute : PostsRouteWithChildren ,
310350 UsersRoute : UsersRouteWithChildren ,
311351 ApiUsersRoute : ApiUsersRouteWithChildren ,
352+ RedirectThrowItRoute : RedirectThrowItRoute ,
353+ RedirectIndexRoute : RedirectIndexRoute ,
312354 PostsPostIdDeepRoute : PostsPostIdDeepRoute ,
313355}
314356export const routeTree = rootRouteImport
0 commit comments