fix api reports + create StaticExploreToolProvider
Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
"@backstage/plugin-events-backend": "workspace:^",
|
||||
"@backstage/plugin-events-node": "workspace:^",
|
||||
"@backstage/plugin-explore-backend": "workspace:^",
|
||||
"@backstage/plugin-explore-common": "workspace:^",
|
||||
"@backstage/plugin-graphql-backend": "workspace:^",
|
||||
"@backstage/plugin-jenkins-backend": "workspace:^",
|
||||
"@backstage/plugin-kafka-backend": "workspace:^",
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
|
||||
import {
|
||||
createRouter,
|
||||
getExampleTools,
|
||||
exampleTools,
|
||||
StaticExploreToolProvider,
|
||||
} from '@backstage/plugin-explore-backend';
|
||||
import { Router } from 'express';
|
||||
import { PluginEnvironment } from '../types';
|
||||
@@ -26,8 +27,6 @@ export default async function createPlugin(
|
||||
): Promise<Router> {
|
||||
return await createRouter({
|
||||
logger: env.logger,
|
||||
toolProvider: {
|
||||
getTools: getExampleTools,
|
||||
},
|
||||
toolProvider: StaticExploreToolProvider.fromData(exampleTools),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user