mirror of
				https://github.com/StefBuwalda/WebTech.git
				synced 2025-10-31 03:39:59 +00:00 
			
		
		
		
	Cleanip init.py, utils.py and decorators.py
This commit is contained in:
		
							
								
								
									
										4
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								app.py
									
									
									
									
									
								
							| @@ -1,11 +1,9 @@ | ||||
| from application import app | ||||
| from flask import redirect, url_for | ||||
| from flask_login import login_required  # type: ignore | ||||
|  | ||||
|  | ||||
| # home route | ||||
| # home route, place holder in case we want a home page | ||||
| @app.route("/") | ||||
| @login_required | ||||
| def index(): | ||||
|     return redirect(url_for("dash.index")) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user