Webhooks ported. Not tested.

This commit is contained in:
Tomas Bures 2018-09-23 21:23:12 +02:00
parent dda95ecdb3
commit 27021e9b2b
7 changed files with 296 additions and 17 deletions

View file

@ -1,7 +1,6 @@
'use strict';
const passport = require('../lib/passport');
const _ = require('../lib/translate')._;
const reports = require('../models/reports');
const reportHelpers = require('../lib/report-helpers');
const shares = require('../models/shares');
@ -23,7 +22,7 @@ router.getAsync('/:id/download', passport.loggedIn, async (req, res) => {
res.sendFile(reportHelpers.getReportContentFile(report), {headers: headers});
} else {
return res.status(404).send(_('Report not found'));
return res.status(404).send('Report not found');
}
});