def docker_slack(): request_payload = request.get_json() translated_payload = translator.translate_docker_to_slack(request_payload) posted = postman.post_payload(request.args['destination_hook_url'], translated_payload) return jsonify(posted)
def bridge_webhook(): request_payload = request.get_json() translated_payload = translator.translate_payload(request_payload) posted = postman.post_payload(request.args['destination_hook_url'], translated_payload) return jsonify(posted)
def form(): request_payload = request.get_json() translated_payload = translator.translate_payload(request_payload) posted = postman.post_payload(request.args['hook_url'], translated_payload) return jsonify(posted)