rename sourcePath to routePath

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2025-08-05 14:46:32 +02:00
parent 27f83a4236
commit f3f9d57953
4 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': patch
---
Renaming the `getNodesByRoutePath` parameter from `sourcePath` to `routePath`
@@ -128,10 +128,10 @@ class AppTreeApiProxy implements AppTreeApi {
return { tree: this.tree };
}
getNodesByRoutePath(sourcePath: string): { nodes: AppNode[] } {
getNodesByRoutePath(routePath: string): { nodes: AppNode[] } {
this.checkIfInitialized();
let path = sourcePath;
let path = routePath;
if (path.startsWith(this.appBasePath)) {
path = path.slice(this.appBasePath.length);
}
+1 -1
View File
@@ -332,7 +332,7 @@ export interface AppTree {
// @public
export interface AppTreeApi {
getNodesByRoutePath(sourcePath: string): {
getNodesByRoutePath(routePath: string): {
nodes: AppNode[];
};
getTree(): {
@@ -113,7 +113,7 @@ export interface AppTreeApi {
/**
* Get all nodes in the app that are mounted at a given route path.
*/
getNodesByRoutePath(sourcePath: string): { nodes: AppNode[] };
getNodesByRoutePath(routePath: string): { nodes: AppNode[] };
}
/**