Commit a1c2f30d authored by Zach Osman's avatar Zach Osman
Browse files

Adding mbailies changes + mine

parent 39e5fd06
from flask import Flask from flask import Flask
from flask import Response
from parscript import load_data from parscript import load_data
import json import json
app = Flask(__name__) app = Flask(__name__)
@app.route("/") @app.route("/")
def display_data(): def display_data():
return json.dumps(load_data()) resp = Response(json.dumps(load_data(), ensure_ascii=False).encode('utf-8'))
resp.headers['Content-Type'] = 'application/json; charset=utf-8'
return resp
export FLASK_APP=mason-today/app.py export FLASK_APP=mason-today/app.py
export FLASK_DEBUG=1 export FLASK_DEBUG=0
flask run flask run --host=0.0.0.0 --port=80
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment