diff options
Diffstat (limited to 'app/main')
| -rw-r--r-- | app/main/__init__.py | 9 | ||||
| -rw-r--r-- | app/main/routes.py | 12 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/main/__init__.py b/app/main/__init__.py new file mode 100644 index 0000000..2cb605e --- /dev/null +++ b/app/main/__init__.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- + +from flask import Blueprint + +bp = Blueprint('main', __name__) + +from app.main import routes + + diff --git a/app/main/routes.py b/app/main/routes.py new file mode 100644 index 0000000..5d14fc6 --- /dev/null +++ b/app/main/routes.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +from flask import render_template +from flask_login import login_required + +from app.main import bp + +@bp.route("/") +@bp.route("/index") +@login_required +def index(): + return render_template("index.html", title="Home") |
