summaryrefslogtreecommitdiff
path: root/app/main/routes.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-11-15 20:34:41 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-11-15 20:34:41 -0700
commit3743f7056dcdbe1a16a00418ea10ebef2669cf61 (patch)
tree298657931ead09efbcf53ccb08bfc3ee501623c1 /app/main/routes.py
parent81834656747ead193334a36d8f49045cc214b53e (diff)
initial structureHEADmain
Diffstat (limited to 'app/main/routes.py')
-rw-r--r--app/main/routes.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/main/routes.py b/app/main/routes.py
new file mode 100644
index 0000000..8657ddb
--- /dev/null
+++ b/app/main/routes.py
@@ -0,0 +1,12 @@
+from flask import render_template
+from flask_login import login_required, current_user
+from app.main import bp
+
+@bp.route('/')
+def index():
+ return render_template('index.html')
+
+@bp.route('/dashboard')
+@login_required
+def dashboard():
+ return render_template('main/dashboard.html', name=current_user.name)