Remove Discovery API Ref
Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user