badges: tweak badge URLs.

Signed-off-by: Andreas Stenius <git@astekk.se>
This commit is contained in:
Andreas Stenius
2021-02-18 09:43:28 +01:00
committed by Fredrik Adelöw
parent 81846585db
commit 300c291a09
2 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ export async function createRouter(
// router.use(express.json());
router.get('/:kind/:namespace/:entityname', async (req, res) => {
const { kind, namespace, entityname } = req.params;
router.get('/entity/:namespace/:kind/:name', async (req, res) => {
const { namespace, kind, name } = req.params;
const badge = badgesApi.getPoweredByBadge();
res.setHeader('Content-Type', 'image/svg+xml');