Remove Discovery API Ref

Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
Karan Shah
2022-02-01 15:24:25 +00:00
parent 3193d9d3bb
commit 6c3a7ad51f
+3 -9
View File
@@ -13,11 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
createApiFactory,
createPlugin,
discoveryApiRef,
} from '@backstage/core-plugin-api';
import { createApiFactory, createPlugin } from '@backstage/core-plugin-api';
import { rootRouteRef } from './routes';
import { airbrakeApiRef, ProductionAirbrakeApi } from './api';
@@ -27,10 +23,8 @@ export const airbrakePlugin = createPlugin({
apis: [
createApiFactory({
api: airbrakeApiRef,
deps: {
discoveryApi: discoveryApiRef,
},
factory: ({ discoveryApi }) => new ProductionAirbrakeApi(discoveryApi),
deps: {},
factory: () => new ProductionAirbrakeApi(),
}),
],
routes: {