diff --git a/postit/generate.py b/postit/generate.py index fe6eeeb..2b77607 100644 --- a/postit/generate.py +++ b/postit/generate.py @@ -1,24 +1,16 @@ from flask import Blueprint, render_template import json - from . import dump - bp = Blueprint("generate", __name__, url_prefix="/generate") -def generate(): - pass - - @bp.route("/") def postit(): dump.dump() - return "hello" - - # with open("contents.json", "r") as f: - # contents = json.load(f) + with open("postit/contents.json", "r") as f: + contents = json.load(f) - # return render_template("postit.html", contents=contents) + return render_template("postit.html", contents=contents)