statistique register
This commit is contained in:
@@ -106,6 +106,47 @@ router.get("/unregister/:tribe/:mlist/:typekey/:srckey/:data/:validation", check
|
||||
res.status(result.status).json(result)
|
||||
})
|
||||
|
||||
/**
|
||||
* @api {GET} adminapi/notifications/stat/maillinglst/:tribe --Statistic maillinglst
|
||||
* @apiName statmaillinglst
|
||||
* @apiGroup Notifications
|
||||
* @apiDescription Mailling list statistique
|
||||
* @apiParams {string} tribe an existing tribe
|
||||
*
|
||||
* @apiSuccess {object} with data results
|
||||
* @apiSuccessExample {json} successfullmessage
|
||||
* HTTP/1.1 200 OK
|
||||
* {
|
||||
* "status": 200,
|
||||
* "ref": "Notifications",
|
||||
* "msg": "statistics",
|
||||
* "data": {
|
||||
* "teasingwebpage": {
|
||||
* "email_stayinformboth": 1,
|
||||
* "email_stayinformseeker": 6
|
||||
* },
|
||||
* "gorillamkt": {
|
||||
* "email_trouvemonjobrecruiter": 7,
|
||||
* "email_trouvemonjobseeker": 142,
|
||||
* "telephonefr_trouvemonjobrecruiter": 4,
|
||||
* "telephonefr_trouvemonjobseeker": 103
|
||||
* },
|
||||
* "forumantony": {
|
||||
* "email_trouvemonjobseeker": 18,
|
||||
* "telephonefr_trouvemonjobseeker": 151
|
||||
* }
|
||||
* }
|
||||
*}
|
||||
*
|
||||
*/
|
||||
router.get("/stat/maillinglst/:tribe", checkHeaders, async (req, res) => {
|
||||
console.log('passe là');
|
||||
const resstat=Notifications.statmaillist(req.params.tribe)
|
||||
res.status(resstat.status).json(resstat);
|
||||
});
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @api {POST} adminapi/notifications/contactanonymous/:tribe -Contact anonymous
|
||||
* @apiName contactanonymous
|
||||
|
Reference in New Issue
Block a user