Fix API to use HTTP fetcher for gitlab

This commit is contained in:
Yarmo Mackenbach 2022-04-17 11:53:28 +02:00
parent f54f9b37e3
commit 058bab5b31

View file

@ -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)
})