Add forum stub

This commit is contained in:
Kiril Kovachev 2024-10-14 11:54:07 +01:00
parent 2d5749007a
commit 06b7c8eb8e
2 changed files with 10 additions and 1 deletions

View File

@ -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

8
kanken_online/forum.py Normal file
View File

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