Sha256: 9ae3bde0c4fc246d562a01827baa61d1cfec22f305868516fe371810f27400cb

Contents?: true

Size: 1.38 KB

Versions: 31

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

resources :patients, only: [] do
  namespace :letters do
    resources :contacts, only: [:index, :new, :create, :edit, :update]
    resources :letters do
      resource :pending_review, controller: "pending_review_letters", only: :create
      resource :rejected, controller: "rejected_letters", only: :create
      resource :approved, controller: "approved_letters", only: :create
      resource :completed, controller: "completed_letters", only: [:new, :create]
      resource :formatted, controller: "formatted_letters", only: :show
      resource :printable,
               controller: "printable_letters",
               only: :show,
               constraints: { format: /(pdf)/ },
               defaults: { format: :pdf }
      collection do
        get :contact_added
      end
    end
  end
end

namespace :letters do
  resource :pdf_letter_cache, only: [:destroy], controller: "pdf_letter_cache"
  resources :descriptions, only: :search do
    collection do
      get :search
    end
  end
  resource :list, only: :show
  resources :letters, only: [] do
    resources :electronic_receipts, only: [] do
      patch :mark_as_read, on: :member
    end
  end
  resources :electronic_receipts, only: [] do
    collection do
      get :unread
      get :read
      get :sent
    end
  end
end
get "authors/:author_id/letters", to: "letters/letters#author", as: "author_letters"

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
renalware-core-2.0.109 config/routes/letters.rb
renalware-core-2.0.108 config/routes/letters.rb
renalware-core-2.0.106 config/routes/letters.rb
renalware-core-2.0.105 config/routes/letters.rb
renalware-core-2.0.104 config/routes/letters.rb
renalware-core-2.0.103 config/routes/letters.rb
renalware-core-2.0.102 config/routes/letters.rb
renalware-core-2.0.101 config/routes/letters.rb
renalware-core-2.0.100 config/routes/letters.rb
renalware-core-2.0.99 config/routes/letters.rb
renalware-core-2.0.98 config/routes/letters.rb
renalware-core-2.0.97 config/routes/letters.rb
renalware-core-2.0.96 config/routes/letters.rb
renalware-core-2.0.95 config/routes/letters.rb
renalware-core-2.0.94 config/routes/letters.rb
renalware-core-2.0.93 config/routes/letters.rb
renalware-core-2.0.92 config/routes/letters.rb
renalware-core-2.0.91 config/routes/letters.rb
renalware-core-2.0.90 config/routes/letters.rb
renalware-core-2.0.89 config/routes/letters.rb