Sha256: 5fc2cc54886e644b5c00921f6d060e3c480a93a5a52ee667a8a4e0fea8982c68

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

MessageTrain::Engine.routes.draw do
  authenticated MessageTrain.configuration.user_route_authentication_method do
    resources :boxes, path: 'box', param: :division, only: [:show, :update, :destroy] do
      resources :conversations, only: [:show, :update, :destroy]
      resources :messages, except: [:index, :destroy]
      resources :participants, only: [:index, :show]
    end
  end

  match '/box(/*path)', to: redirect(MessageTrain.configuration.user_sign_in_path), via: [:get, :put, :delete]
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
message_train-0.1.6 config/routes.rb
message_train-0.1.5 config/routes.rb
message_train-0.1.4 config/routes.rb
message_train-0.1.3 config/routes.rb
message_train-0.1.2 config/routes.rb
message_train-0.1.1 config/routes.rb
message_train-0.1.0 config/routes.rb