diff --git a/app/main/__init__.py b/app/main/__init__.py new file mode 100644 index 0000000..b0b4d94 --- /dev/null +++ b/app/main/__init__.py @@ -0,0 +1,4 @@ +from flask import Blueprint + +bp = Blueprint('main', __name__) +from app.main import routes \ No newline at end of file diff --git a/app/main/routes.py b/app/main/routes.py new file mode 100644 index 0000000..a4527ea --- /dev/null +++ b/app/main/routes.py @@ -0,0 +1,6 @@ +from flask import render_template +from app.main import bp + +@bp.route('/') +def index(): + return render_template("index.html") \ No newline at end of file diff --git a/templates/index.html b/app/templates/index.html similarity index 100% rename from templates/index.html rename to app/templates/index.html diff --git a/templates/layout.html b/app/templates/layout.html similarity index 100% rename from templates/layout.html rename to app/templates/layout.html