From 6a559e1a48277cdb98bb2dc2fcc49f2a2059e9e0 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Mon, 16 Dec 2024 14:20:58 -0500 Subject: [PATCH] docs: update --- packages/main/src/didWebServer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/main/src/didWebServer.ts b/packages/main/src/didWebServer.ts index f046da0..6939c36 100644 --- a/packages/main/src/didWebServer.ts +++ b/packages/main/src/didWebServer.ts @@ -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 @@ -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 @@ -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}`)