Merge pull request #1043 from spotify/ndudnik/use-catalog-backend

Ndudnik/use catalog backend
This commit is contained in:
Nikita Dudnik
2020-05-29 14:16:17 +02:00
committed by GitHub
23 changed files with 299 additions and 215 deletions
+7
View File
@@ -71,6 +71,13 @@
"pathRewrite": {
"^/circleci/api/": "/"
}
},
"/catalog/api": {
"target": "http://localhost:3003",
"changeOrigin": true,
"pathRewrite": {
"^/catalog/api/": "/"
}
}
}
}
+9
View File
@@ -38,6 +38,7 @@ import {
import { techRadarApiRef, TechRadar } from '@backstage/plugin-tech-radar';
import { CircleCIApi, circleCIApiRef } from '@backstage/plugin-circleci';
import { catalogApiRef, CatalogClient } from '@backstage/plugin-catalog';
const builder = ApiRegistry.builder();
@@ -71,4 +72,12 @@ builder.add(
}),
);
builder.add(
catalogApiRef,
new CatalogClient({
apiOrigin: 'http://localhost:3000',
basePath: '/catalog/api',
}),
);
export default builder.build() as ApiHolder;