From 999ebb0c27d692cf0efc7db93d1e5e10e9e45ebf Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sun, 29 Sep 2024 17:34:48 -0300 Subject: [PATCH] feat(main): adds main module --- app/main/__init__.py | 4 ++++ app/main/routes.py | 6 ++++++ {templates => app/templates}/index.html | 0 {templates => app/templates}/layout.html | 0 4 files changed, 10 insertions(+) create mode 100644 app/main/__init__.py create mode 100644 app/main/routes.py rename {templates => app/templates}/index.html (100%) rename {templates => app/templates}/layout.html (100%) 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