Skip to content

Commit

Permalink
fix(remote-server): fix path for web-did-doc-router
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceanis committed Jan 13, 2022
1 parent 6d1916b commit 6bb1003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remote-server/src/web-did-doc-router.ts
Expand Up @@ -80,7 +80,7 @@ export const WebDidDocRouter = (options: WebDidDocRouterOptions): Router => {
if (req.agent) {
try {
const identifier = await req.agent.didManagerGet({
did: 'did:web:' + getAliasForRequest(req) + ':' + req.params[0].replace('/', ':'),
did: 'did:web:' + getAliasForRequest(req) + ':' + req.params[0].replace(/\//g, ':'),
})
const didDoc = didDocForIdentifier(identifier)
res.json(didDoc)
Expand Down

0 comments on commit 6bb1003

Please sign in to comment.