Sha256: 3c083383767c87d61b2215ef9d6c6ddd4b5e1ba966dbd0f0d033a15fcc67b209

Contents?: true

Size: 1.69 KB

Versions: 87

Compression:

Stored size: 1.69 KB

Contents

# frozen_string_literal: true

resources :patients, only: [] do
  namespace :transplants do
    resource :mdm, only: :show, controller: "mdm"

    scope "/donor" do
      resource :donor_dashboard, only: :show, path: "/dashboard"
      resource :donor_workup, only: [:show, :edit, :update], path: "/workup"
      resources :donor_operations, except: [:index, :destroy], path: "/operations" do
        resource :followup,
                 except: :destroy,
                 controller: "donor_followups",
                 path: "/follow_up"
      end
      resources :donations, except: [:index, :destroy]
      resource :donor_stage, only: [:new, :create], path: "/stage"
    end

    scope "/recipient" do
      resource :recipient_dashboard, only: :show, path: "/dashboard"
      resource :recipient_workup, only: [:show, :edit, :update], path: "/workup"
      resources :recipient_operations, except: [:index, :destroy], path: "/operations" do
        resource :followup,
                 except: :destroy,
                 controller: "recipient_followups",
                 path: "/follow_up"
      end
      resource :registration, only: [:show, :edit, :update] do
        resources :statuses, except: [:index, :show], controller: "registration_statuses"
      end
    end
  end
end

namespace :transplants do
  constraints(named_filter: /#{Renalware::Transplants::WAITLIST_FILTERS.join("|")}/) do
    get "wait_list/:named_filter", to: "wait_lists#show", as: :wait_list
  end
  resources :live_donors, only: :index
  resources :mdm_patients, only: :index
  constraints(named_filter: /(recent|on_worryboard|past_year)/) do
    get "mdm_patients/:named_filter", to: "mdm_patients#index", as: :filtered_mdm_patients
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
renalware-core-2.1.1 config/routes/transplants.rb
renalware-core-2.1.0 config/routes/transplants.rb
renalware-core-2.0.167 config/routes/transplants.rb
renalware-core-2.0.166 config/routes/transplants.rb
renalware-core-2.0.165 config/routes/transplants.rb
renalware-core-2.0.164 config/routes/transplants.rb
renalware-core-2.0.163 config/routes/transplants.rb
renalware-core-2.0.162 config/routes/transplants.rb
renalware-core-2.0.161 config/routes/transplants.rb
renalware-core-2.0.160 config/routes/transplants.rb
renalware-core-2.0.159 config/routes/transplants.rb
renalware-core-2.0.158 config/routes/transplants.rb
renalware-core-2.0.157 config/routes/transplants.rb
renalware-core-2.0.156 config/routes/transplants.rb
renalware-core-2.0.155 config/routes/transplants.rb
renalware-core-2.0.153 config/routes/transplants.rb
renalware-core-2.0.152 config/routes/transplants.rb
renalware-core-2.0.151 config/routes/transplants.rb
renalware-core-2.0.149 config/routes/transplants.rb
renalware-core-2.0.148 config/routes/transplants.rb