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

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

Enable /events endpoints under cache_classes
Enable /events endpoints under cache_classes
