def hook(): api = ApiController() data = api.route(request.headers, request.json) return jsonify(success="success")
def hook(): api = ApiController() sentry.captureMessage('received a hook with the following: \n{0}'.format(request.json)) data = api.route(request.headers, request.json) return jsonify(success="success")