better landing etc
This commit is contained in:
7
app.py
7
app.py
@@ -26,8 +26,9 @@ def is_logged_in():
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
# If not logged in, show the landing page instead of redirecting
|
||||
if not is_logged_in():
|
||||
return redirect(url_for('login'))
|
||||
return render_template('landing.html')
|
||||
|
||||
user_id = get_user_id()
|
||||
|
||||
@@ -99,6 +100,10 @@ def logout():
|
||||
session.clear()
|
||||
return redirect(url_for('login'))
|
||||
|
||||
@app.route('/roadmap')
|
||||
def roadmap():
|
||||
return render_template('roadmap.html')
|
||||
|
||||
@app.route('/add_activity', methods=['POST'])
|
||||
def add_activity():
|
||||
if not is_logged_in(): return redirect(url_for('login'))
|
||||
|
||||
Reference in New Issue
Block a user