浏览代码

Adding python version, super basic flask app, only functions as echo server at this point

Joe Ceresini 7 年之前
父节点
当前提交
6deaa35aab
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      python/api.py

+ 10 - 0
python/api.py

@@ -0,0 +1,10 @@
+from flask import Flask,request
+import json
+
+app = Flask(__name__)
+
[email protected]("/contains_all_chars", methods=['POST'])
+def contains_all_chars():
+	# Just testing, essentially an echo server at this point
+	return json.dumps(request.get_json())
+