Sha256: 98101e72b7b6f20fe0573780e5cc31edcbae1289948eaa1fe36b023273fd0d5f

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

# Prefix for messages. Defaults to '/messages' resulting in 
# /messages, /messages/1, /messages/sent, /messages/archived 

prefix_for_messages = Carrier.config.routes.prefix_for_messages

Carrier::Engine.routes.draw do

  resources :messages, :path => prefix_for_messages do
    member do
      get :reply
      get :expanded
      get :collapsed
    end
    collection do
      get :sent
      get :archive
    end
  end

  resources :chains do 
    member do
      post :archive
      post :unarchive
    end
  end

  root :to => "messages#index"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
carrier-0.1.2 config/routes.rb
carrier-0.1.1 config/routes.rb
carrier-0.1.0 config/routes.rb