Skip to content

Commit df49416

Browse files
authored
Bugfix - Notebooks 404 passthrough error resolved (#3387)
* bugfix- Notebooks 404 passthrough error resolved Signed-off-by: Lucas <lyoon@redhat.com> * add changeset Signed-off-by: Lucas <lyoon@redhat.com> --------- Signed-off-by: Lucas <lyoon@redhat.com>
1 parent 172d39f commit df49416

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-lightspeed-backend': minor
3+
---
4+
5+
bugfix - Notebooks routes 404 passthrough error resolved

workspaces/lightspeed/plugins/lightspeed-backend/src/plugin.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,6 @@ export const lightspeedPlugin = createBackendPlugin({
5151
}) {
5252
await migrate(database);
5353

54-
http.use(
55-
await createRouter({
56-
config,
57-
logger,
58-
database,
59-
httpAuth,
60-
userInfo,
61-
permissions,
62-
}),
63-
);
64-
6554
const aiNotebooksEnabled =
6655
config.getOptionalBoolean('lightspeed.notebooks.enabled') ?? false;
6756

@@ -98,6 +87,17 @@ export const lightspeedPlugin = createBackendPlugin({
9887
}
9988
}
10089

90+
http.use(
91+
await createRouter({
92+
config,
93+
logger,
94+
database,
95+
httpAuth,
96+
userInfo,
97+
permissions,
98+
}),
99+
);
100+
101101
// Configure authentication policies
102102
http.addAuthPolicy({
103103
path: '/health',

0 commit comments

Comments
 (0)