File size: 292 Bytes
975d1b2
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from flask import Flask

def create_app():
    v_app = Flask(__name__)
    v_app.config['UPLOAD_FOLDER'] = 'app/uploads/'
    v_app.config['ALLOWED_EXTENSIONS'] = {'zip'}

    with v_app.app_context():
        from .routes import v_bp
        v_app.register_blueprint(v_bp)

    return v_app