```ruby
module Api
  module V1
    class CausesController < ApplicationController

      def index
        causes = Cause.all
        render json: causes
      end

      def show
        cause = Cause.find_by_id(params[:id])
        render json: cause
      end

    end
  end
end
```

Include events json data in causes show route
user
```ruby
module Api
  module V1
    class CausesController < ApplicationController

      def index
        causes = Cause.all
        render json: causes
      end

      def show
        cause = Cause.find_by_id(params[:id])
        render json: cause, include: ['events']
      end

    end
  end
end
```
assistant