We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 88ed0ea + 24ac593 commit c94dbafCopy full SHA for c94dbaf
2 files changed
hooks/python/configuring-your-server/requirements.txt
@@ -0,0 +1 @@
1
+flask==0.12.2
hooks/python/configuring-your-server/server.py
@@ -0,0 +1,13 @@
+from __future__ import print_function
2
+from flask import Flask, request
3
+
4
+app = Flask(__name__)
5
6
+# Change ngrok listening port accordingly
7
+# ./ngrok http 5000
8
9
10
+@app.route("/payload", methods=['POST'])
11
+def payload():
12
+ print('I got some JSON: {}'.format(request.json))
13
+ return 'ok'
0 commit comments