mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-31 02:32:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			420 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			420 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from config import config
 | |
| from flask import Flask, render_template
 | |
| 
 | |
| 
 | |
| def create_app(config_name):
 | |
|     app = Flask(__name__)
 | |
|     app.config.from_object(config[config_name])
 | |
|     config[config_name].init_app(app)
 | |
| 
 | |
|     @app.route('/')
 | |
|     def index():
 | |
|         return render_template('base.html.j2')
 | |
| 
 | |
|     from .auth import auth as auth_blueprint
 | |
|     app.register_blueprint(auth_blueprint, url_prefix='/auth')
 | |
| 
 | |
|     return app
 |