Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Dec 16, 2024
1 parent 44e3be7 commit 6a559e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/main/src/didWebServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const addDidWebRoutes = async (
res.send(404)
})

// Endpoint to retrieve a revocation registry definition by its ID
app.get('/anoncreds/v1/revRegDef/:revocationDefinitionId', async (req, res) => {
const revocationDefinitionId = req.params.revocationDefinitionId

Expand Down Expand Up @@ -159,6 +160,8 @@ export const addDidWebRoutes = async (
res.send(404)
})

// Endpoint to retrieve the revocation status list for a specific revocation definition ID
// Optional: Accepts a timestamp parameter (not currently used in the logic)
app.get('/anoncreds/v1/revStatus/:revocationDefinitionId/:timestamp?', async (req, res) => {
const revocationDefinitionId = req.params.revocationDefinitionId

Expand Down Expand Up @@ -225,6 +228,7 @@ export const addDidWebRoutes = async (
}
})

// Endpoint to upload a tails file for a specific tailsFileId
app.put('/:tailsFileId', multer({ storage: fileStorage }).single('file'), async (req, res) => {
agent.config.logger.info(`tails file upload: ${req.params.tailsFileId}`)

Expand Down

0 comments on commit 6a559e1

Please sign in to comment.