Sha256: 145b19e39e558147f62175772a6b04c42e32d1bbcd23a766447911cdb7413769

Contents?: true

Size: 699 Bytes

Versions: 19

Compression:

Stored size: 699 Bytes

Contents

Commontator::Engine.routes.draw do
  resources :threads, :only => [:show] do
    resources :comments, :except => [:index, :destroy], :shallow => true do
      put 'delete', :on => :member
      put 'undelete', :on => :member
      
      put 'upvote', :on => :member
      put 'downvote', :on => :member
      put 'unvote', :on => :member
    end
    
    put 'close', :on => :member
    put 'reopen', :on => :member
    
    put 'subscribe', :to => 'subscriptions#create',
                     :as => 'subscribe',
                     :on => :member
    put 'unsubscribe', :to => 'subscriptions#destroy',
                       :as => 'unsubscribe',
                       :on => :member
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
commontator-2.0.2 config/routes.rb
commontator-2.0.1 config/routes.rb
commontator-2.0.0 config/routes.rb
commontator-1.1.3 config/routes.rb
commontator-1.1.2 config/routes.rb
commontator-1.1.1 config/routes.rb
commontator-1.1.0 config/routes.rb
commontator-1.0.6 config/routes.rb
commontator-1.0.5 config/routes.rb
commontator-1.0.4 config/routes.rb
commontator-1.0.3 config/routes.rb
commontator-1.0.2 config/routes.rb
commontator-1.0.1 config/routes.rb
commontator-1.0.0 config/routes.rb
commontator-0.5.14 config/routes.rb
commontator-0.5.13 config/routes.rb
commontator-0.5.12 config/routes.rb
commontator-0.4.1 config/routes.rb
commontator-0.3.10 config/routes.rb