Skip to content

Commit

Permalink
Create home.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Haimonti authored Nov 3, 2024
1 parent 913533d commit fcbad16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions upFAR/backend/home.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit fcbad16

Please sign in to comment.