We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5c2e6e commit 00aa705Copy full SHA for 00aa705
lib/handlers/index.js
@@ -2,15 +2,14 @@ module.exports = handler
2
3
const path = require('path')
4
const debug = require('debug')('solid:index')
5
-const utils = require('../utils')
6
const Negotiator = require('negotiator')
7
8
async function handler (req, res, next) {
9
const indexFile = 'index.html'
10
const ldp = req.app.locals.ldp
11
const negotiator = new Negotiator(req)
12
const requestedType = negotiator.mediaType()
13
- const filename = utils.reqToPath(req)
+ const { path: filename } = await req.app.locals.ldp.resourceMapper.mapUrlToFile({ url: req })
14
15
try {
16
const stats = await ldp.stat(filename)
0 commit comments