generate blueprint

master
km0 3 years ago
parent b419cd5c31
commit d6468f9e2e

@ -1,24 +1,16 @@
from flask import Blueprint, render_template from flask import Blueprint, render_template
import json import json
from . import dump from . import dump
bp = Blueprint("generate", __name__, url_prefix="/generate") bp = Blueprint("generate", __name__, url_prefix="/generate")
def generate():
pass
@bp.route("/") @bp.route("/")
def postit(): def postit():
dump.dump() dump.dump()
return "hello" with open("postit/contents.json", "r") as f:
contents = json.load(f)
# with open("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