plugins/lighthouse: add lighthouse api to dev env

This commit is contained in:
Patrik Oldsberg
2020-05-08 18:53:04 +02:00
parent 198bf2d1a6
commit 81cb54d52b
+9 -1
View File
@@ -16,5 +16,13 @@
import { createDevApp } from '@backstage/dev-utils';
import { plugin } from '../src/plugin';
import { lighthouseApiRef, LighthouseRestApi } from '../src';
createDevApp().registerPlugin(plugin).render();
createDevApp()
.registerPlugin(plugin)
.registerApiFactory({
implements: lighthouseApiRef,
deps: {},
factory: () => new LighthouseRestApi('http://localhost:3003'),
})
.render();