He creado una función API para un webhook de Trello.
export default function handler(req, res) { if (req.method == "POST") { value = req.body; res.status(200).json("Ok"); initalBoardID = value.model.id; value = value.action; type = value.type; translationKey = value.display.translationKey; if ( type == "addMemberToCard" && translationKey == "action_member_joined_card" ) { member = value.display.entities.member.id; createCard(); } } else { res.status(200).json("Function works"); } }Si uso Postman, esta función funciona bien. Pero Trello no envía ningún webhook a través de esta función.
La URL tiene un certificado SSL y un protocolo https.
¿Cómo puedo actualizar esta función para que Trello envíe un webhook a través de esta función?