Adapt to new claimDefinition format

This commit is contained in:
Yarmo Mackenbach 2021-04-15 22:52:52 +02:00
parent 2bf92ff9df
commit 59a779e6ff
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -55,7 +55,7 @@ router.get('/get/http',
} }
fetcher fetcher
.http(req.query, opts) .http.fn(req.query, opts)
.then(result => { .then(result => {
switch (req.query.format) { switch (req.query.format) {
case E.ProofFormat.JSON: case E.ProofFormat.JSON:
@ -82,7 +82,7 @@ router.get('/get/dns',
} }
fetcher fetcher
.dns(req.query, opts) .dns.fn(req.query, opts)
.then((data) => { .then((data) => {
return res.status(200).send(data) return res.status(200).send(data)
}) })
@ -105,7 +105,7 @@ router.get('/get/xmpp',
} }
fetcher fetcher
.xmpp(req.query, opts) .xmpp.fn(req.query, opts)
.then((data) => { .then((data) => {
return res.status(200).send(data) return res.status(200).send(data)
}) })
@ -127,7 +127,7 @@ router.get('/get/twitter',
} }
fetcher fetcher
.twitter(req.query, opts) .twitter.fn(req.query, opts)
.then((data) => { .then((data) => {
return res.status(200).send(data) return res.status(200).send(data)
}) })
@ -150,7 +150,7 @@ router.get('/get/matrix',
} }
fetcher fetcher
.matrix(req.params, opts) .matrix.fn(req.query, opts)
.then((data) => { .then((data) => {
return res.status(200).send(data) return res.status(200).send(data)
}) })
@ -172,7 +172,7 @@ router.get('/get/irc',
} }
fetcher fetcher
.irc(req.params, opts) .irc.fn(req.query, opts)
.then((data) => { .then((data) => {
return res.status(200).send(data) return res.status(200).send(data)
}) })