diff --git a/controllers/external.controller.js b/controllers/external.controller.js index 1a3f977b..a962ff22 100644 --- a/controllers/external.controller.js +++ b/controllers/external.controller.js @@ -6,6 +6,7 @@ const { ObjectId } = require('mongodb') var sanitize = require('mongo-sanitize') const web3 = require('web3') const { externalUpdateStatforUser } = require('../helpers/common') +const Big = require('big.js') const { getInstagramUserName, diff --git a/routes/campaign.routes.js b/routes/campaign.routes.js index aa354552..5666af66 100644 --- a/routes/campaign.routes.js +++ b/routes/campaign.routes.js @@ -565,6 +565,37 @@ router.get('/details/:id', idCheckValidation,campaignDetails) */ router.get('/campaignPrompAll/:id', verifyAuth, campaignPrompValidation,campaignPromp) + + +/** + * @swagger + * /campaign/campaignPrompAllExt/{id}: + * get: + * tags: ["campaign"] + * summary: get campaign pending link + * description: return to user the list of campaign promp ALl
without access_token + * produces: + * - application/json + * parameters: + * - in: path + * name: id + * type: string + * description: the campaign id. + * required: true + * - in: query + * name: influencer + * type: string + * description: the influencer wallet_id. + * responses: + * "200": + * description: code,
message:"success" + * "401": + * description: error:error message
"unothorized" + * "500": + * description: error:"error" + */ +router.get('/campaignPrompAllExt/:id',campaignPrompValidation,campaignPromp) + /** * @swagger * /campaign/expandLink/{shortUrl}: