Skip to content

Commit

Permalink
fix: filter the issue vc api for revocation list middleware
Browse files Browse the repository at this point in the history
Signed-off-by: Nam Hoang <hoangxuannam160493@gmail.com>
  • Loading branch information
namhoang1604 committed Jul 19, 2023
1 parent 3d70f69 commit c09ee92
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export function revocationList2020(args: {
throw Error('Agent not available');
}

if (!req.body || !args.apiRoutes.includes(req.path)) {
next();
return;
}

try {
const revocationData = await req.agent.execute('getRevocationData', {
revocationListPath: args.revocationListPath,
Expand Down

0 comments on commit c09ee92

Please sign in to comment.