From fcbad16114311a14b8b621101d33208ecebf70ef Mon Sep 17 00:00:00 2001 From: Haimonti Date: Sun, 3 Nov 2024 14:29:26 -0500 Subject: [PATCH] Create home.py --- upFAR/backend/home.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 upFAR/backend/home.py diff --git a/upFAR/backend/home.py b/upFAR/backend/home.py new file mode 100644 index 0000000..fadc77c --- /dev/null +++ b/upFAR/backend/home.py @@ -0,0 +1,13 @@ +from flask import Blueprint, render_template +from flask_login import LoginManager, login_required, current_user + +from models import db, Users + +home = Blueprint('home', __name__, template_folder='../frontend') +login_manager = LoginManager() +login_manager.init_app(home) + +@home.route('/home', methods=['GET']) +@login_required +def show(): + return render_template('home.html')