Rename registerComponent to registerApi to better communicate intent
Signed-off-by: Kamil Zainal <gh@akza.dev>
This commit is contained in:
@@ -47,7 +47,7 @@ const apiDocsPlugin: BackstagePlugin<
|
||||
root: RouteRef<undefined>;
|
||||
},
|
||||
{
|
||||
registerComponent: ExternalRouteRef<undefined, true>;
|
||||
registerApi: ExternalRouteRef<undefined, true>;
|
||||
}
|
||||
>;
|
||||
export { apiDocsPlugin };
|
||||
|
||||
@@ -45,7 +45,7 @@ export const apiDocsPlugin = createPlugin({
|
||||
}),
|
||||
],
|
||||
externalRoutes: {
|
||||
registerComponent: registerComponentRouteRef,
|
||||
registerApi: registerComponentRouteRef,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user