Sha256: 20e1ce14359391fb2adc792c1d56880c996d34e9aff824b8c25ef2e460bcc12f

Contents?: true

Size: 569 Bytes

Versions: 8

Compression:

Stored size: 569 Bytes

Contents

Crowdblog::Engine.routes.draw do
  root :to => 'posts#index'

  namespace :admin do
    resources :authors, only: :index

    match 'posts/:state', :to => 'posts#index',
      :constraints => { :state => /(published|drafted)/ },
      :as => 'posts_by_state',
      :via => :get

    match 'posts/:id/:transition', :to => 'transitions#create',
      :constraints => { :transition => /(draft|finish|review|publish)/ },
      :as => 'post_transitions',
      :via => :post

    resources :posts do
      resources :assets
    end

    root :to => 'posts#index'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
crowdblog-0.6.2 config/routes.rb
crowdblog-0.6.0 config/routes.rb
crowdblog-0.5.0 config/routes.rb
crowdblog-0.3.3 config/routes.rb
crowdblog-0.4.0 config/routes.rb
crowdblog-0.3.2 config/routes.rb
crowdblog-0.3.1 config/routes.rb
crowdblog-0.3.0 config/routes.rb