10
10
11
11
// Import Routes
12
12
13
- import { Route as rootRoute } from './routes/__root' ;
14
- import { Route as PluginsImport } from './routes/plugins' ;
15
- import { Route as GuildsImport } from './routes/guilds' ;
16
- import { Route as EventsImport } from './routes/events' ;
17
- import { Route as CommandsImport } from './routes/commands' ;
18
- import { Route as IndexImport } from './routes/index' ;
13
+ import { Route as rootRoute } from './routes/__root'
14
+ import { Route as PluginsImport } from './routes/plugins'
15
+ import { Route as GuildsImport } from './routes/guilds'
16
+ import { Route as FeatureFlagsImport } from './routes/feature-flags'
17
+ import { Route as EventsImport } from './routes/events'
18
+ import { Route as CommandsImport } from './routes/commands'
19
+ import { Route as IndexImport } from './routes/index'
19
20
20
21
// Create/Update Routes
21
22
22
23
const PluginsRoute = PluginsImport . update ( {
23
24
id : '/plugins' ,
24
25
path : '/plugins' ,
25
26
getParentRoute : ( ) => rootRoute ,
26
- } as any ) ;
27
+ } as any )
27
28
28
29
const GuildsRoute = GuildsImport . update ( {
29
30
id : '/guilds' ,
30
31
path : '/guilds' ,
31
32
getParentRoute : ( ) => rootRoute ,
32
- } as any ) ;
33
+ } as any )
34
+
35
+ const FeatureFlagsRoute = FeatureFlagsImport . update ( {
36
+ id : '/feature-flags' ,
37
+ path : '/feature-flags' ,
38
+ getParentRoute : ( ) => rootRoute ,
39
+ } as any )
33
40
34
41
const EventsRoute = EventsImport . update ( {
35
42
id : '/events' ,
36
43
path : '/events' ,
37
44
getParentRoute : ( ) => rootRoute ,
38
- } as any ) ;
45
+ } as any )
39
46
40
47
const CommandsRoute = CommandsImport . update ( {
41
48
id : '/commands' ,
42
49
path : '/commands' ,
43
50
getParentRoute : ( ) => rootRoute ,
44
- } as any ) ;
51
+ } as any )
45
52
46
53
const IndexRoute = IndexImport . update ( {
47
54
id : '/' ,
48
55
path : '/' ,
49
56
getParentRoute : ( ) => rootRoute ,
50
- } as any ) ;
57
+ } as any )
51
58
52
59
// Populate the FileRoutesByPath interface
53
60
54
61
declare module '@tanstack/react-router' {
55
62
interface FileRoutesByPath {
56
63
'/' : {
57
- id : '/' ;
58
- path : '/' ;
59
- fullPath : '/' ;
60
- preLoaderRoute : typeof IndexImport ;
61
- parentRoute : typeof rootRoute ;
62
- } ;
64
+ id : '/'
65
+ path : '/'
66
+ fullPath : '/'
67
+ preLoaderRoute : typeof IndexImport
68
+ parentRoute : typeof rootRoute
69
+ }
63
70
'/commands' : {
64
- id : '/commands' ;
65
- path : '/commands' ;
66
- fullPath : '/commands' ;
67
- preLoaderRoute : typeof CommandsImport ;
68
- parentRoute : typeof rootRoute ;
69
- } ;
71
+ id : '/commands'
72
+ path : '/commands'
73
+ fullPath : '/commands'
74
+ preLoaderRoute : typeof CommandsImport
75
+ parentRoute : typeof rootRoute
76
+ }
70
77
'/events' : {
71
- id : '/events' ;
72
- path : '/events' ;
73
- fullPath : '/events' ;
74
- preLoaderRoute : typeof EventsImport ;
75
- parentRoute : typeof rootRoute ;
76
- } ;
78
+ id : '/events'
79
+ path : '/events'
80
+ fullPath : '/events'
81
+ preLoaderRoute : typeof EventsImport
82
+ parentRoute : typeof rootRoute
83
+ }
84
+ '/feature-flags' : {
85
+ id : '/feature-flags'
86
+ path : '/feature-flags'
87
+ fullPath : '/feature-flags'
88
+ preLoaderRoute : typeof FeatureFlagsImport
89
+ parentRoute : typeof rootRoute
90
+ }
77
91
'/guilds' : {
78
- id : '/guilds' ;
79
- path : '/guilds' ;
80
- fullPath : '/guilds' ;
81
- preLoaderRoute : typeof GuildsImport ;
82
- parentRoute : typeof rootRoute ;
83
- } ;
92
+ id : '/guilds'
93
+ path : '/guilds'
94
+ fullPath : '/guilds'
95
+ preLoaderRoute : typeof GuildsImport
96
+ parentRoute : typeof rootRoute
97
+ }
84
98
'/plugins' : {
85
- id : '/plugins' ;
86
- path : '/plugins' ;
87
- fullPath : '/plugins' ;
88
- preLoaderRoute : typeof PluginsImport ;
89
- parentRoute : typeof rootRoute ;
90
- } ;
99
+ id : '/plugins'
100
+ path : '/plugins'
101
+ fullPath : '/plugins'
102
+ preLoaderRoute : typeof PluginsImport
103
+ parentRoute : typeof rootRoute
104
+ }
91
105
}
92
106
}
93
107
94
108
// Create and export the route tree
95
109
96
110
export interface FileRoutesByFullPath {
97
- '/' : typeof IndexRoute ;
98
- '/commands' : typeof CommandsRoute ;
99
- '/events' : typeof EventsRoute ;
100
- '/guilds' : typeof GuildsRoute ;
101
- '/plugins' : typeof PluginsRoute ;
111
+ '/' : typeof IndexRoute
112
+ '/commands' : typeof CommandsRoute
113
+ '/events' : typeof EventsRoute
114
+ '/feature-flags' : typeof FeatureFlagsRoute
115
+ '/guilds' : typeof GuildsRoute
116
+ '/plugins' : typeof PluginsRoute
102
117
}
103
118
104
119
export interface FileRoutesByTo {
105
- '/' : typeof IndexRoute ;
106
- '/commands' : typeof CommandsRoute ;
107
- '/events' : typeof EventsRoute ;
108
- '/guilds' : typeof GuildsRoute ;
109
- '/plugins' : typeof PluginsRoute ;
120
+ '/' : typeof IndexRoute
121
+ '/commands' : typeof CommandsRoute
122
+ '/events' : typeof EventsRoute
123
+ '/feature-flags' : typeof FeatureFlagsRoute
124
+ '/guilds' : typeof GuildsRoute
125
+ '/plugins' : typeof PluginsRoute
110
126
}
111
127
112
128
export interface FileRoutesById {
113
- __root__ : typeof rootRoute ;
114
- '/' : typeof IndexRoute ;
115
- '/commands' : typeof CommandsRoute ;
116
- '/events' : typeof EventsRoute ;
117
- '/guilds' : typeof GuildsRoute ;
118
- '/plugins' : typeof PluginsRoute ;
129
+ __root__ : typeof rootRoute
130
+ '/' : typeof IndexRoute
131
+ '/commands' : typeof CommandsRoute
132
+ '/events' : typeof EventsRoute
133
+ '/feature-flags' : typeof FeatureFlagsRoute
134
+ '/guilds' : typeof GuildsRoute
135
+ '/plugins' : typeof PluginsRoute
119
136
}
120
137
121
138
export interface FileRouteTypes {
122
- fileRoutesByFullPath : FileRoutesByFullPath ;
123
- fullPaths : '/' | '/commands' | '/events' | '/guilds' | '/plugins' ;
124
- fileRoutesByTo : FileRoutesByTo ;
125
- to : '/' | '/commands' | '/events' | '/guilds' | '/plugins' ;
126
- id : '__root__' | '/' | '/commands' | '/events' | '/guilds' | '/plugins' ;
127
- fileRoutesById : FileRoutesById ;
139
+ fileRoutesByFullPath : FileRoutesByFullPath
140
+ fullPaths :
141
+ | '/'
142
+ | '/commands'
143
+ | '/events'
144
+ | '/feature-flags'
145
+ | '/guilds'
146
+ | '/plugins'
147
+ fileRoutesByTo : FileRoutesByTo
148
+ to : '/' | '/commands' | '/events' | '/feature-flags' | '/guilds' | '/plugins'
149
+ id :
150
+ | '__root__'
151
+ | '/'
152
+ | '/commands'
153
+ | '/events'
154
+ | '/feature-flags'
155
+ | '/guilds'
156
+ | '/plugins'
157
+ fileRoutesById : FileRoutesById
128
158
}
129
159
130
160
export interface RootRouteChildren {
131
- IndexRoute : typeof IndexRoute ;
132
- CommandsRoute : typeof CommandsRoute ;
133
- EventsRoute : typeof EventsRoute ;
134
- GuildsRoute : typeof GuildsRoute ;
135
- PluginsRoute : typeof PluginsRoute ;
161
+ IndexRoute : typeof IndexRoute
162
+ CommandsRoute : typeof CommandsRoute
163
+ EventsRoute : typeof EventsRoute
164
+ FeatureFlagsRoute : typeof FeatureFlagsRoute
165
+ GuildsRoute : typeof GuildsRoute
166
+ PluginsRoute : typeof PluginsRoute
136
167
}
137
168
138
169
const rootRouteChildren : RootRouteChildren = {
139
170
IndexRoute : IndexRoute ,
140
171
CommandsRoute : CommandsRoute ,
141
172
EventsRoute : EventsRoute ,
173
+ FeatureFlagsRoute : FeatureFlagsRoute ,
142
174
GuildsRoute : GuildsRoute ,
143
175
PluginsRoute : PluginsRoute ,
144
- } ;
176
+ }
145
177
146
178
export const routeTree = rootRoute
147
179
. _addFileChildren ( rootRouteChildren )
148
- . _addFileTypes < FileRouteTypes > ( ) ;
180
+ . _addFileTypes < FileRouteTypes > ( )
149
181
150
182
/* ROUTE_MANIFEST_START
151
183
{
@@ -156,6 +188,7 @@ export const routeTree = rootRoute
156
188
"/",
157
189
"/commands",
158
190
"/events",
191
+ "/feature-flags",
159
192
"/guilds",
160
193
"/plugins"
161
194
]
@@ -169,6 +202,9 @@ export const routeTree = rootRoute
169
202
"/events": {
170
203
"filePath": "events.tsx"
171
204
},
205
+ "/feature-flags": {
206
+ "filePath": "feature-flags.tsx"
207
+ },
172
208
"/guilds": {
173
209
"filePath": "guilds.tsx"
174
210
},
0 commit comments