Skip to content

Instantly share code, notes, and snippets.

@HeyBillFinn
HeyBillFinn / gist:9cfaeb858311615e9f921e02d8435df0
Created October 7, 2019 16:40
Tiny flask application server
import json
from flask import Flask, Response
app = Flask(__name__)
@app.route('/')
def hello():
return Response(json.dumps({"foo": "bar"}), mimetype="application/json")