Redirect from landing to dashboard if authenticated

This commit is contained in:
Peter Stockings
2024-12-25 11:32:25 +11:00
parent 191ac840c9
commit 635f7f271e

View File

@@ -49,6 +49,8 @@ def logout():
@main.route('/', methods=['GET'])
def landing():
if current_user.is_authenticated:
return redirect(url_for('main.dashboard'))
return render_template('landing.html')
@main.route('/dashboard', methods=['GET', 'POST'])