Fix app pathing

This commit is contained in:
Tim Van Baak 2020-01-08 21:42:21 -08:00
parent fe0967d625
commit 872e055a3f
1 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@ from flask import Flask, render_template
import config
app = Flask("amanuensis")
app = Flask(__name__, template_folder="../templates")
app.secret_key = bytes.fromhex(config.get('secret_key'))
@app.route("/")
def root():
return render_template("admin.html", username="guest")
from .auth import bp
app.register_blueprint(auth.bp)