Added Flask Blueprints to enforce modularity
This commit is contained in:
14
core/blueprints/main.py
Normal file
14
core/blueprints/main.py
Normal 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')
|
||||
|
||||
Reference in New Issue
Block a user