From 80111df09f1ebd93c3da6f8c33e5686a7dd38710 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Thu, 9 Jan 2025 21:14:25 +0000 Subject: [PATCH] fix: fix npdi for real - missed a slash! --- src/services/npdi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/npdi.ts b/src/services/npdi.ts index ee1c2e5..0cc2e75 100644 --- a/src/services/npdi.ts +++ b/src/services/npdi.ts @@ -8,7 +8,7 @@ const npdi = express.Router(); npdi.get('/p01/data/1/:titleHash/:dataID/:fileHash', (request, response) => { const { titleHash, fileHash } = request.params; - const contentPath = path.normalize(`${__appRoot}../cdn/content/encrypted/${titleHash}/${fileHash}`); + const contentPath = path.normalize(`${__appRoot}/../cdn/content/encrypted/${titleHash}/${fileHash}`); response.sendFile(contentPath, { headers: {