Skip to content

Commit

Permalink
Reuse ldp more often
Browse files Browse the repository at this point in the history
  • Loading branch information
l0vecraft committed Aug 24, 2019
1 parent b1e2a1b commit 478589f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capability-discovery.js
Expand Up @@ -33,7 +33,7 @@ function serviceCapabilityDocument () {
const ldp = req.app.locals.ldp
res.json({
// Add the server root url
root: req.app.locals.ldp.resourceMapper.resolveUrl(req.hostname, req.path),
root: ldp.resourceMapper.resolveUrl(req.hostname, req.path),
// Add the 'apps' urls section
apps: req.app.locals.appUrls,
api: {
Expand All @@ -44,8 +44,8 @@ function serviceCapabilityDocument () {
// Create new user (see IdentityProvider.post() in identity-provider.js)
new: new URL('/api/accounts/new', ldp.serverUri),
recover: new URL('/api/accounts/recover', ldp.serverUri),
signin: req.app.locals.ldp.resourceMapper.resolveUrl(req.hostname, '/login'),
signout: req.app.locals.ldp.resourceMapper.resolveUrl(req.hostname, '/logout'),
signin: ldp.resourceMapper.resolveUrl(req.hostname, '/login'),
signout: ldp.resourceMapper.resolveUrl(req.hostname, '/logout'),
validateToken: new URL('/api/accounts/validateToken', ldp.serverUri)
}
}
Expand Down

0 comments on commit 478589f

Please sign in to comment.