Sha256: 9050b570569616c98fdb6ccefccf4acc1148665808aad1a201a430f2cca17e4b

Contents?: true

Size: 438 Bytes

Versions: 77

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

namespace :messaging do
  namespace :internal do
    resources :messages, only: [:new, :create] do
      resources :receipts, only: [] do
        patch :mark_as_read, on: :member
      end
    end
    scope :messages do
      get "inbox", to: "receipts#unread", as: :inbox
      get "read", to: "receipts#read", as: :read_receipts
      get "sent", to: "receipts#sent", as: :sent_messages
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
renalware-core-2.0.153 config/routes/messaging.rb
renalware-core-2.0.152 config/routes/messaging.rb
renalware-core-2.0.151 config/routes/messaging.rb
renalware-core-2.0.149 config/routes/messaging.rb
renalware-core-2.0.148 config/routes/messaging.rb
renalware-core-2.0.147 config/routes/messaging.rb
renalware-core-2.0.146 config/routes/messaging.rb
renalware-core-2.0.145 config/routes/messaging.rb
renalware-core-2.0.144 config/routes/messaging.rb
renalware-core-2.0.143 config/routes/messaging.rb
renalware-core-2.0.142 config/routes/messaging.rb
renalware-core-2.0.141 config/routes/messaging.rb
renalware-core-2.0.140 config/routes/messaging.rb
renalware-core-2.0.139 config/routes/messaging.rb
renalware-core-2.0.138 config/routes/messaging.rb
renalware-core-2.0.137 config/routes/messaging.rb
renalware-core-2.0.136 config/routes/messaging.rb
renalware-core-2.0.135 config/routes/messaging.rb
renalware-core-2.0.134 config/routes/messaging.rb
renalware-core-2.0.133 config/routes/messaging.rb