stc

a simple time card webapp
git clone _git@git.brennen.work:stc.git
Log | Files | Refs | README

commit 2211ce5e2ba505e0dc3b993acca529f4e6834f71
parent 3fedc042ffe27b9edda4dbe0c5b120e06ae3aa37
Author: Brennen T. Mazur <brennen@madis.cool>
Date:   Fri,  3 Mar 2023 13:42:22 -0700

who needs an index page

Diffstat:
Mapp/routes.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/routes.py b/app/routes.py @@ -60,16 +60,13 @@ def document(): # Page Routes -@app.route('/') -@app.route('/index') -def hello(): - return render_template('index.html',ORGNAME = OrganizationName) #This implimentation of ORGNAME is messy, maybe abstract to a defPage()? @app.route("/logout", methods=['GET']) def logout(): logout_user() return redirect(url_for('login')) +@app.route('/') @app.route("/login", methods=['GET', 'POST']) def login(): if current_user.is_authenticated: @@ -102,6 +99,9 @@ def load_user(username): user_obj.password_hash = u['password_hash'] return user_obj +@app.route('/index') +def hello(): + return redirect(url_for('dashboard')) @app.route("/dashboard", methods=['GET', 'POST']) @login_required def dashboard():