mailtrain/routes/rest/campaigns.js
2017-07-11 11:28:44 +02:00

14 lines
No EOL
345 B
JavaScript

'use strict';
const passport = require('../../lib/passport');
const campaigns = require('../../models/campaigns');
const router = require('../../lib/router-async').create();
router.postAsync('/campaigns-table', passport.loggedIn, async (req, res) => {
return res.json(await campaigns.listDTAjax(req.body));
});
module.exports = router;