Skip to content

Instantly share code, notes, and snippets.

@belljustin
Created August 4, 2016 15:34
Show Gist options
  • Select an option

  • Save belljustin/b8e2cd09cf98c531ddf4fa9a95cb2dbe to your computer and use it in GitHub Desktop.

Select an option

Save belljustin/b8e2cd09cf98c531ddf4fa9a95cb2dbe to your computer and use it in GitHub Desktop.
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/', methods=['POST'])
def index():
json = request.json
return jsonify(your_function(json))
if __name__=='__main__':
app.run(host='0.0.0.0', port=5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment