Fix app pathing
This commit is contained in:
parent
fe0967d625
commit
872e055a3f
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user