```ruby
Magi::Application.routes.draw do
  root to: "jobs#index"

  resources :jobs do
    resources :builds, only: [:index, :show, :create, :update, :destroy]
  end

  resources :events, only: :index
end
```

Enable /events endpoints under cache_classes
user
```ruby
Magi::Application.routes.draw do
  root to: "jobs#index"

  resources :jobs do
    resources :builds, only: [:index, :show, :create, :update, :destroy]
  end

  resources :events, only: :index if Rails.configuration.cache_classes
end
```
assistant