Skip to content

Commit

Permalink
fix: fix npdi for real - missed a slash!
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryoverload committed Jan 9, 2025
1 parent d56b949 commit 80111df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/npdi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 80111df

Please sign in to comment.