Add info to bind route

Signed-off-by: Axel Koehler <axel@staffbase.com>
This commit is contained in:
Axel Koehler
2021-03-26 08:16:23 +01:00
parent c3b8a5c9a3
commit bec7625998
+11 -2
View File
@@ -11,10 +11,19 @@ To install the plugin, include the following import your `plugins.ts`:
export { explorePlugin } from '@backstage/plugin-explore';
```
Register the route in `App.tsx`:
Register and bind the route in `App.tsx`:
```typescript
import { ExplorePage } from '@backstage/plugin-explore';
import { ExplorePage, explorePlugin } from '@backstage/plugin-explore';
...
bindRoutes({ bind }) {
...
bind(explorePlugin.externalRoutes, {
catalogEntity: catalogPlugin.routes.catalogEntity,
});
},
...