mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Fix API to use HTTP fetcher for gitlab
This commit is contained in:
parent
f54f9b37e3
commit
058bab5b31
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue