badges: load default badges from code rather than config. #4457.

Signed-off-by: Andreas Stenius <git@astekk.se>
This commit is contained in:
Andreas Stenius
2021-02-23 13:03:43 +01:00
committed by Fredrik Adelöw
parent ce4897ff37
commit ac17aeb35d
15 changed files with 278 additions and 206 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { createRouter } from '@backstage/plugin-badges-backend';
import { createRouter, badges } from '@backstage/plugin-badges-backend';
import { PluginEnvironment } from '../types';
export default async function createPlugin({
@@ -22,5 +22,5 @@ export default async function createPlugin({
config,
discovery,
}: PluginEnvironment) {
return await createRouter({ logger, config, discovery });
return await createRouter({ logger, config, discovery, badges });
}