Fix app pathing
This commit is contained in:
parent
fe0967d625
commit
872e055a3f
|
@ -2,9 +2,9 @@ from flask import Flask, render_template
|
||||||
|
|
||||||
import config
|
import config
|
||||||
|
|
||||||
app = Flask("amanuensis")
|
app = Flask(__name__, template_folder="../templates")
|
||||||
app.secret_key = bytes.fromhex(config.get('secret_key'))
|
app.secret_key = bytes.fromhex(config.get('secret_key'))
|
||||||
|
|
||||||
@app.route("/")
|
from .auth import bp
|
||||||
def root():
|
app.register_blueprint(auth.bp)
|
||||||
return render_template("admin.html", username="guest")
|
|
||||||
|
|
Loading…
Reference in New Issue