Sha256: 8a8320e2008ecfa0a925147377898ca563bc77223e21e18912aaa212eee97157

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 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]
      get 'participants/:model', as: :model_participants, to: 'participants#index'
      get 'participants/:model/:id', as: :model_participant, to: 'participants#show'
    end
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
message_train-0.1.7 config/routes.rb