prod test yay oof

pull/12/head
tycrek 3 years ago
parent 7d0effbd20
commit e547cca113
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -63,7 +63,7 @@ function startup() {
// View file
app.get('/:resourceId', (req, res) => {
let resourceId = req.params.resourceId;
if (data[resourceId]) res.type(data[resourceId].mimetype).send(fs.readFileSync(path(data[resourceId].path)));// .sendFile(path(data[resourceId].path));
if (data[resourceId]) res.header('Accept-Ranges', 'bytes').type(data[resourceId].mimetype).send(fs.readFileSync(path(data[resourceId].path)));// .sendFile(path(data[resourceId].path));
else res.sendStatus(404);
});

Loading…
Cancel
Save