diff --git a/.DS_Store b/.DS_Store index 9cc964a..37a2c19 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/si17/.DS_Store b/si17/.DS_Store new file mode 100644 index 0000000..7c8f571 Binary files /dev/null and b/si17/.DS_Store differ diff --git a/si17/__init__.py b/si17/__init__.py index d9cb543..540af68 100644 --- a/si17/__init__.py +++ b/si17/__init__.py @@ -37,6 +37,8 @@ def create_app(test_config=None): from . import home app.register_blueprint(home.bp) + # from . import karaoke + # app.register_blueprint(karaoke.bp) diff --git a/si17/home.py b/si17/home.py index b38e494..b6c748f 100644 --- a/si17/home.py +++ b/si17/home.py @@ -7,3 +7,7 @@ bp = Blueprint("home", __name__, url_prefix="/") @bp.route("/") def home(): return render_template("home.html") + +@bp.route("//") +def page(slug=None): + return slug \ No newline at end of file diff --git a/si17/karaoke.py b/si17/karaoke.py new file mode 100644 index 0000000..929052f --- /dev/null +++ b/si17/karaoke.py @@ -0,0 +1,12 @@ +from flask import Blueprint, render_template, redirect, url_for + + +bp = Blueprint("karaoke", __name__, url_prefix="/🎤") + + +@bp.route("/") +def home(): + print('Karaoke page') + # return redirect(url_for('home.home')) + return 'Karaoke page' + diff --git a/si17/static/.DS_Store b/si17/static/.DS_Store new file mode 100644 index 0000000..4db36fb Binary files /dev/null and b/si17/static/.DS_Store differ