Sha256: d4b2594532797dc02177d9fc20908bc24f0076309777ac32fdebf599bb86ae3f

Contents?: true

Size: 527 Bytes

Versions: 12

Compression:

Stored size: 527 Bytes

Contents

Commontator::Engine.routes.draw do
  resources :threads, only: [ :show ] do
    resources :comments, except: [ :index, :destroy ], shallow: true do
      member do
        put 'upvote'
        put 'downvote'
        put 'unvote'

        put 'delete'
        put 'undelete'
      end
    end

    member do
      get 'mentions' if Commontator.mentions_enabled

      put 'subscribe', to: 'subscriptions#subscribe'
      put 'unsubscribe', to: 'subscriptions#unsubscribe'

      put 'close'
      put 'reopen'
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
commontator-7.0.1 config/routes.rb
commontator-7.0.0 config/routes.rb
commontator-6.3.2 config/routes.rb
commontator-6.3.1 config/routes.rb
commontator-6.3.0 config/routes.rb
commontator-6.2.1 config/routes.rb
commontator-6.2.0 config/routes.rb
commontator-6.1.1 config/routes.rb
commontator-6.1.0 config/routes.rb
commontator-6.0.1 config/routes.rb
commontator-6.0.0 config/routes.rb
commontator-6.0.0.pre.2 config/routes.rb