badges-backend: refactor to use badge definitions in config. #4457

Signed-off-by: Andreas Stenius <git@astekk.se>
This commit is contained in:
Andreas Stenius
2021-02-19 17:33:32 +01:00
committed by Fredrik Adelöw
parent 61078ba14d
commit 798002ee03
8 changed files with 160 additions and 16 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import { PluginEnvironment } from '../types';
export default async function createPlugin({
logger,
config,
discovery,
}: PluginEnvironment) {
return await createRouter({ logger, config });
return await createRouter({ logger, config, discovery });
}