Pass app to invokable middleware.