mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	move blueprints in dedicated folder
This commit is contained in:
		
							
								
								
									
										5
									
								
								app/blueprints/workshops/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								app/blueprints/workshops/__init__.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
from flask import Blueprint
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
bp = Blueprint('workshops', __name__)
 | 
			
		||||
from . import routes
 | 
			
		||||
							
								
								
									
										15
									
								
								app/blueprints/workshops/routes.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								app/blueprints/workshops/routes.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
from flask import redirect, render_template, url_for
 | 
			
		||||
from . import bp
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@bp.route('')
 | 
			
		||||
def workshops():
 | 
			
		||||
    return redirect(url_for('main.dashboard'))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@bp.route('/fgho_sommerschule_2023')
 | 
			
		||||
def fgho_sommerschule_2023():
 | 
			
		||||
    return render_template(
 | 
			
		||||
        'workshops/fgho_sommerschule_2023.html.j2',
 | 
			
		||||
        title='FGHO Sommerschule 2023',
 | 
			
		||||
    )
 | 
			
		||||
		Reference in New Issue
	
	Block a user