Skip to content

Commit

Permalink
forward body in did-web-gen post
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed Apr 23, 2024
1 parent ed37fc9 commit f7e8af2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export async function build (opts = {}) {
return res.json(response.data)
})

app.get('/did-web-generator', async (req, res, next) => {
const response = await axios.get(`http://${signingServiceEndpoint}/did-web-generator`)
app.post('/did-web-generator', async (req, res, next) => {
const body = req.body
const response = await axios.post(`http://${signingServiceEndpoint}/did-web-generator`, body)
return res.json(response.data)
})
app.post('/instance/:tenantName/credentials/issue',
Expand Down

0 comments on commit f7e8af2

Please sign in to comment.