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.132 config/routes/messaging.rb
renalware-core-2.0.131 config/routes/messaging.rb
renalware-core-2.0.130 config/routes/messaging.rb
renalware-core-2.0.129 config/routes/messaging.rb
renalware-core-2.0.128 config/routes/messaging.rb
renalware-core-2.0.127 config/routes/messaging.rb
renalware-core-2.0.126 config/routes/messaging.rb
renalware-core-2.0.125 config/routes/messaging.rb
renalware-core-2.0.124 config/routes/messaging.rb
renalware-core-2.0.123 config/routes/messaging.rb
renalware-core-2.0.121 config/routes/messaging.rb
renalware-core-2.0.120 config/routes/messaging.rb
renalware-core-2.0.119 config/routes/messaging.rb
renalware-core-2.0.118 config/routes/messaging.rb
renalware-core-2.0.117 config/routes/messaging.rb
renalware-core-2.0.116 config/routes/messaging.rb
renalware-core-2.0.115 config/routes/messaging.rb
renalware-core-2.0.113 config/routes/messaging.rb
renalware-core-2.0.112 config/routes/messaging.rb
renalware-core-2.0.111 config/routes/messaging.rb