Send test functionality for templates and campaigns
This commit is contained in:
parent
7e52000219
commit
2c73c536b7
22 changed files with 719 additions and 69 deletions
|
@ -12,6 +12,10 @@ router.postAsync('/subscriptions-table/:listId/:segmentId?', passport.loggedIn,
|
|||
return res.json(await subscriptions.listDTAjax(req.context, castToInteger(req.params.listId), req.params.segmentId ? castToInteger(req.params.segmentId) : null, req.body));
|
||||
});
|
||||
|
||||
router.postAsync('/subscriptions-test-user-table/:listCid', passport.loggedIn, async (req, res) => {
|
||||
return res.json(await subscriptions.listTestUsersDTAjax(req.context, req.params.listCid, req.body));
|
||||
});
|
||||
|
||||
router.getAsync('/subscriptions/:listId/:subscriptionId', passport.loggedIn, async (req, res) => {
|
||||
const entity = await subscriptions.getById(req.context, castToInteger(req.params.listId), castToInteger(req.params.subscriptionId));
|
||||
entity.hash = await subscriptions.hashByList(castToInteger(req.params.listId), entity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue