Skip to content

Commit b1e2a1b

Browse files
authored
🐜 Reuse ldp
1 parent 0555e66 commit b1e2a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function handler (req, res, next) {
1313
const requestedType = negotiator.mediaType()
1414

1515
try {
16-
const { path: filename } = await req.app.locals.ldp.resourceMapper.mapUrlToFile({ url: req })
16+
const { path: filename } = await ldp.resourceMapper.mapUrlToFile({ url: req })
1717

1818
const stats = await ldp.stat(filename)
1919
if (!stats.isDirectory()) {

0 commit comments

Comments
 (0)