Rails.application.routes.draw do
  # Documentation
  apipie

  scope '/api/v1', except: [:new, :edit], defaults: { format: :json } do
    resources :drugs, only: [:index, :show, :create] do
      resource :reactions
    end
  end
end

Rails.application.routes.draw do
  # Documentation
  apipie

  scope '/api/v1', except: [:new, :edit], defaults: { format: :json } do
    resources :drugs, only: [:show, :create] do
      resource :reactions
    end
  end
end

Remove the :index route to pass tests performed by devops/build processes.
Remove the :index route to pass tests performed by devops/build processes.
