badges-backend: drop support for defining badges in app config.

Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
This commit is contained in:
Andreas Stenius
2021-03-02 12:13:10 +01:00
committed by Fredrik Adelöw
parent d80bdf0324
commit 6a68e79217
8 changed files with 33 additions and 155 deletions
+10 -2
View File
@@ -14,7 +14,10 @@
* limitations under the License.
*/
import { createRouter, badges } from '@backstage/plugin-badges-backend';
import {
createRouter,
createDefaultBadges,
} from '@backstage/plugin-badges-backend';
import { PluginEnvironment } from '../types';
export default async function createPlugin({
@@ -22,5 +25,10 @@ export default async function createPlugin({
config,
discovery,
}: PluginEnvironment) {
return await createRouter({ logger, config, discovery, badges });
return await createRouter({
logger,
config,
discovery,
badges: createDefaultBadges(),
});
}