From 06b7c8eb8e74b32ccbf7a4361ab89dde569c4eac Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Mon, 14 Oct 2024 11:54:07 +0100 Subject: [PATCH] Add forum stub --- kanken_online/__init__.py | 3 ++- kanken_online/forum.py | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 kanken_online/forum.py diff --git a/kanken_online/__init__.py b/kanken_online/__init__.py index a86262f..6f88ce8 100644 --- a/kanken_online/__init__.py +++ b/kanken_online/__init__.py @@ -65,9 +65,10 @@ def create_app(test_config=None): from . import database database.initialize_app(app) - from . import auth, api + from . import auth, api, forum app.register_blueprint(auth.blueprint) app.register_blueprint(api.blueprint) + app.register_blueprint(forum.blueprint) from . import lang diff --git a/kanken_online/forum.py b/kanken_online/forum.py new file mode 100644 index 0000000..4fae4d3 --- /dev/null +++ b/kanken_online/forum.py @@ -0,0 +1,8 @@ +from flask import Blueprint, render_template + + +blueprint = Blueprint("forum", __name__, url_prefix="/forum") + +@blueprint.route("/") +def index(): + return render_template("forum/index.html")