Merge pull request #5127 from Staffbase/update-explore-plugin-readme

[plugin-explore] Add info to bind route
This commit is contained in:
Ben Lambert
2021-03-29 09:45:59 +02:00
committed by GitHub
+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,
});
},
...