code: def with_app(f):
      
      @wraps(f)
      def decorator(*args, **kwargs):
          app = create_app()
          configure_extensions(app)
          configure_views(app)
          return f(app=app, *args, **kwargs)
      return decorator
docs: Calls function passing app as first argument