from flask import Flask from routers.key import key_bp def app_factory() -> Flask: app = Flask(__name__) app.register_blueprint(key_bp) return app if __name__ == "__main__": app = app_factory() app.run(debug=True)