SSE setup member interplayers
Fri Jul 01 2022 14:12:07 GMT+0000 (Coordinated Universal Time)
Saved by
@elias
#javascript
app.post('/occ-intera-business-gateway-setup-member', function (req, res) {
if (req.body.captchaToken) {
var options = {
'method': 'POST',
'url': 'https://www.google.com/recaptcha/api/siteverify?secret=' + recaptchaSeccret + '&response=' + req.body.captchaToken,
'headers': {
}
};
request(options, function (error, response) {
if (JSON.parse(response.body).success) {
req.query.apiKey = process.env.OIBG_APIKEY;
proxy(req, res, 'https://occ-intera-business.gateway.linkapi.com.br');
} else {
return res.status(400).json({ error: "not auth", code: 20051 })
}
});
} else {
return res.status(400).json({ error: "not auth", code: 10102 })
}
});
content_copyCOPY
Comments