implemented download tokens

This commit is contained in:
Danny Coates
2020-07-27 11:18:52 -07:00
parent 87d46f7ef5
commit 81e9d81dab
26 changed files with 271 additions and 126 deletions

View File

@@ -11,7 +11,7 @@ module.exports = async function(req, res) {
res.send({
metadata: meta.metadata,
flagged: !!meta.flagged,
finalDownload: meta.dl + 1 === meta.dlimit,
finalDownload: meta.dlToken + 1 === meta.dlimit,
ttl
});
} catch (e) {