From 058bab5b3175df8d63926954d7c9b9f1b925159d Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 17 Apr 2022 11:53:28 +0200 Subject: [PATCH] Fix API to use HTTP fetcher for gitlab --- src/proxy/api/v2/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/proxy/api/v2/index.js b/src/proxy/api/v2/index.js index 8ece786..5cddba4 100644 --- a/src/proxy/api/v2/index.js +++ b/src/proxy/api/v2/index.js @@ -203,8 +203,11 @@ router.get( return res.status(400).json({ errors: errors.array() }) } - fetcher.gitlab - .fn(req.query, opts) + fetcher.http + .fn({ + url: `https://${req.query.domain}/api/v4/projects/${req.query.username}%2Fgitlab_proof`, + format: 'json' + }, opts) .then((data) => { return res.status(200).send(data) })