fix: fix npdi for real - missed a slash!
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled

This commit is contained in:
William Oldham
2025-01-09 21:14:25 +00:00
parent d56b9498ea
commit 80111df09f

View File

@@ -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: {