from flask import Flask
from apps.cms import bp as cms_bp
from apps.front import bp as front_bp


def create_app():
    app = Flask(__name__)
    app.register_blueprint(cms_bp)
    app.register_blueprint(front_bp)
    return app


app = create_app()

if __name__ == '__main__':
    app = create_app()
    app.run()
