summaryrefslogtreecommitdiff
path: root/jimbrella/web.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-11-23 19:20:23 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-11-23 19:20:23 +0800
commit70b5dae19f8a91d13f05f3b39582d50718104d56 (patch)
tree341d9fce73747c9fb61e017470e5bd1f57e22e64 /jimbrella/web.py
parent542c6ff92f29cb9c83f3c217f29646d25a1a4a20 (diff)
Index page with QR codes
Diffstat (limited to 'jimbrella/web.py')
-rw-r--r--jimbrella/web.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/jimbrella/web.py b/jimbrella/web.py
index 8a625ac..33e059a 100644
--- a/jimbrella/web.py
+++ b/jimbrella/web.py
@@ -1,5 +1,5 @@
import logging
-from flask import Flask
+from flask import Flask, render_template
from .admin import bp as admin_bp
from .auth import bp as auth_bp
from .config import *
@@ -9,6 +9,11 @@ logging.basicConfig(filename=LOG_PATH, level=logging.DEBUG)
app = Flask("jimbrella")
app.secret_key = FLASK_SECRET_KEY
+
+@app.route("/")
+def index():
+ return render_template("index.html")
+
app.register_blueprint(admin_bp)
app.register_blueprint(auth_bp)