Skip to content

Commit ed362e7

Browse files
RhysSullivanRhys Sullivan
andauthored
Add self-host OAuth apps route (#921)
Co-authored-by: Rhys Sullivan <rhys@Rhyss-Mac-mini.local>
1 parent a292434 commit ed362e7

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

apps/host-selfhost/web/routeTree.gen.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { Route as rootRouteImport } from './routes/__root'
1212
import { Route as ToolsRouteImport } from './routes/tools'
1313
import { Route as SecretsRouteImport } from './routes/secrets'
1414
import { Route as PoliciesRouteImport } from './routes/policies'
15+
import { Route as OauthAppsRouteImport } from './routes/oauth-apps'
1516
import { Route as ApiKeysRouteImport } from './routes/api-keys'
1617
import { Route as AdminRouteImport } from './routes/admin'
1718
import { Route as IndexRouteImport } from './routes/index'
@@ -38,6 +39,11 @@ const PoliciesRoute = PoliciesRouteImport.update({
3839
path: '/policies',
3940
getParentRoute: () => rootRouteImport,
4041
} as any)
42+
const OauthAppsRoute = OauthAppsRouteImport.update({
43+
id: '/oauth-apps',
44+
path: '/oauth-apps',
45+
getParentRoute: () => rootRouteImport,
46+
} as any)
4147
const ApiKeysRoute = ApiKeysRouteImport.update({
4248
id: '/api-keys',
4349
path: '/api-keys',
@@ -94,6 +100,7 @@ export interface FileRoutesByFullPath {
94100
'/': typeof IndexRoute
95101
'/admin': typeof AdminRoute
96102
'/api-keys': typeof ApiKeysRoute
103+
'/oauth-apps': typeof OauthAppsRoute
97104
'/policies': typeof PoliciesRoute
98105
'/secrets': typeof SecretsRoute
99106
'/tools': typeof ToolsRoute
@@ -109,6 +116,7 @@ export interface FileRoutesByTo {
109116
'/': typeof IndexRoute
110117
'/admin': typeof AdminRoute
111118
'/api-keys': typeof ApiKeysRoute
119+
'/oauth-apps': typeof OauthAppsRoute
112120
'/policies': typeof PoliciesRoute
113121
'/secrets': typeof SecretsRoute
114122
'/tools': typeof ToolsRoute
@@ -125,6 +133,7 @@ export interface FileRoutesById {
125133
'/': typeof IndexRoute
126134
'/admin': typeof AdminRoute
127135
'/api-keys': typeof ApiKeysRoute
136+
'/oauth-apps': typeof OauthAppsRoute
128137
'/policies': typeof PoliciesRoute
129138
'/secrets': typeof SecretsRoute
130139
'/tools': typeof ToolsRoute
@@ -142,6 +151,7 @@ export interface FileRouteTypes {
142151
| '/'
143152
| '/admin'
144153
| '/api-keys'
154+
| '/oauth-apps'
145155
| '/policies'
146156
| '/secrets'
147157
| '/tools'
@@ -157,6 +167,7 @@ export interface FileRouteTypes {
157167
| '/'
158168
| '/admin'
159169
| '/api-keys'
170+
| '/oauth-apps'
160171
| '/policies'
161172
| '/secrets'
162173
| '/tools'
@@ -172,6 +183,7 @@ export interface FileRouteTypes {
172183
| '/'
173184
| '/admin'
174185
| '/api-keys'
186+
| '/oauth-apps'
175187
| '/policies'
176188
| '/secrets'
177189
| '/tools'
@@ -188,6 +200,7 @@ export interface RootRouteChildren {
188200
IndexRoute: typeof IndexRoute
189201
AdminRoute: typeof AdminRoute
190202
ApiKeysRoute: typeof ApiKeysRoute
203+
OauthAppsRoute: typeof OauthAppsRoute
191204
PoliciesRoute: typeof PoliciesRoute
192205
SecretsRoute: typeof SecretsRoute
193206
ToolsRoute: typeof ToolsRoute
@@ -223,6 +236,13 @@ declare module '@tanstack/react-router' {
223236
preLoaderRoute: typeof PoliciesRouteImport
224237
parentRoute: typeof rootRouteImport
225238
}
239+
'/oauth-apps': {
240+
id: '/oauth-apps'
241+
path: '/oauth-apps'
242+
fullPath: '/oauth-apps'
243+
preLoaderRoute: typeof OauthAppsRouteImport
244+
parentRoute: typeof rootRouteImport
245+
}
226246
'/api-keys': {
227247
id: '/api-keys'
228248
path: '/api-keys'
@@ -300,6 +320,7 @@ const rootRouteChildren: RootRouteChildren = {
300320
IndexRoute: IndexRoute,
301321
AdminRoute: AdminRoute,
302322
ApiKeysRoute: ApiKeysRoute,
323+
OauthAppsRoute: OauthAppsRoute,
303324
PoliciesRoute: PoliciesRoute,
304325
SecretsRoute: SecretsRoute,
305326
ToolsRoute: ToolsRoute,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { createFileRoute } from "@tanstack/react-router";
2+
import { OAuthAppsPage } from "@executor-js/react/pages/oauth-apps";
3+
4+
export const Route = createFileRoute("/oauth-apps")({
5+
component: OAuthAppsPage,
6+
});

0 commit comments

Comments
 (0)