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")