diff --git a/app.py b/app.py index f3f0590..ebc50ac 100644 --- a/app.py +++ b/app.py @@ -11,5 +11,12 @@ def index(): return render_template('index.html', products=data) +@app.route("/test") +def index(): + with open('data/products.json') as f: + data = json.load(f) + + return render_template('index.html', products=data) + if __name__ == "__main__": - app.run(debug=True) \ No newline at end of file + app.run(debug=True)