Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 508 Bytes

createPlugin-router.md

File metadata and controls

21 lines (17 loc) · 508 Bytes

createPlugin - router

The router that is passed to the register function includes makes it possible for plugins to hook into routing of the Backstage app and provide the end users with new views to navigate to.

type RouterHooks = {
  registerRoute(
    path: RoutePath,
    Component: ComponentType<any>,
    options?: RouteOptions,
  ): void;

  registerRedirect(
    path: RoutePath,
    target: RoutePath,
    options?: RouteOptions,
  ): void;
};

Back to References