generate blueprint

master
km0 2 years ago
parent b419cd5c31
commit d6468f9e2e

@ -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)

Loading…
Cancel
Save