lbry-desktop/web/src/tempfile.js

10 lines
248 B
JavaScript
Raw Normal View History

2021-11-17 13:28:36 -05:00
const fs = require('fs');
const path = require('path');
async function getTempFile(ctx) {
const filename = ctx.params.filename;
return fs.readFileSync(path.join(__dirname, `/../dist/${filename}`), 'utf8');
2021-11-17 13:28:36 -05:00
}
module.exports = { getTempFile };