From bec76259988664f665c19e30a64bbb2abbd14e82 Mon Sep 17 00:00:00 2001 From: Axel Koehler Date: Fri, 26 Mar 2021 08:16:23 +0100 Subject: [PATCH] Add info to bind route Signed-off-by: Axel Koehler --- plugins/explore/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/plugins/explore/README.md b/plugins/explore/README.md index ec00cb4dee..b236af14dc 100644 --- a/plugins/explore/README.md +++ b/plugins/explore/README.md @@ -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, + }); +}, ...