Add forum stub
This commit is contained in:
parent
2d5749007a
commit
06b7c8eb8e
@ -65,9 +65,10 @@ def create_app(test_config=None):
|
|||||||
from . import database
|
from . import database
|
||||||
database.initialize_app(app)
|
database.initialize_app(app)
|
||||||
|
|
||||||
from . import auth, api
|
from . import auth, api, forum
|
||||||
app.register_blueprint(auth.blueprint)
|
app.register_blueprint(auth.blueprint)
|
||||||
app.register_blueprint(api.blueprint)
|
app.register_blueprint(api.blueprint)
|
||||||
|
app.register_blueprint(forum.blueprint)
|
||||||
|
|
||||||
from . import lang
|
from . import lang
|
||||||
|
|
||||||
|
8
kanken_online/forum.py
Normal file
8
kanken_online/forum.py
Normal 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")
|
Loading…
Reference in New Issue
Block a user