Sha256: b7f5b18317c2e274bd0a3fb8b850f8174b5ee2764f0eb3483fc6d8342f2ada6f

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commontator-4.0.1 config/routes.rb
commontator-4.0.0 config/routes.rb