Sha256: b040d45bde95e1c5477e5d2b202ec63991267c74f93def45a0120781264fbcd3

Contents?: true

Size: 643 Bytes

Versions: 14

Compression:

Stored size: 643 Bytes

Contents

Rails.application.routes.draw do
  scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
    resources :pages do
      member do
        post :publish
        post :unpublish
        post :toggle_for_blog
      end
      collection do 
        post :sort
      end
    end
    
    resources :contacts
    
    resources :comments do
      collection do
        get :pending
        get :accepted
        get :blocked
        get :for_feed
      end
      member do
        post :accept
        post :block
      end
    end
    get 'blog' => 'blog#index', as: :blog
    get 'tags/:tag', to: 'blog#index', as: :tag
    
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tkh_content-0.9.7 config/routes.rb
tkh_content-0.9.6 config/routes.rb
tkh_content-0.9.5 config/routes.rb
tkh_content-0.9.4 config/routes.rb
tkh_content-0.9.3 config/routes.rb
tkh_content-0.9.2 config/routes.rb
tkh_content-0.4.7 config/routes.rb
tkh_content-0.9.1 config/routes.rb
tkh_content-0.9 config/routes.rb
tkh_content-0.4.6 config/routes.rb
tkh_content-0.4.5 config/routes.rb
tkh_content-0.4.4 config/routes.rb
tkh_content-0.4.3 config/routes.rb
tkh_content-0.4.2 config/routes.rb