diff --git a/src/small/app.py b/src/small/app.py index e424dc0..8ddaab8 100644 --- a/src/small/app.py +++ b/src/small/app.py @@ -4,20 +4,15 @@ from os import environ from .views import home, article, error, proxy +app = Flask(__name__) -def create_app(): - app = Flask(__name__) - - app.register_blueprint(home.bp) - app.register_blueprint(article.bp) - app.register_blueprint(error.bp) - app.register_blueprint(proxy.bp) - - return app +app.register_blueprint(home.bp) +app.register_blueprint(article.bp) +app.register_blueprint(error.bp) +app.register_blueprint(proxy.bp) def main(): - app = create_app() port = int(environ.get("PORT", 8115)) app.run(port=port)