Added Flask Blueprints to enforce modularity

This commit is contained in:
white
2025-01-19 20:13:45 +00:00
parent 43d97f638b
commit d3620cc9da
15 changed files with 71 additions and 50 deletions

14
core/blueprints/main.py Normal file
View File

@@ -0,0 +1,14 @@
from flask import render_template, Blueprint
main_bp = Blueprint("app", __name__)
@main_bp.route('/')
def index():
"""
Home page of the platform
Contains a list of some of the streams that are currently live and the most popular categories.
"""
return render_template('index.html')