Sha256: e1df80fc104a6950ce611435d277ff3a53b95b018034a91102d4ea5d471c2a0b

Contents?: true

Size: 559 Bytes

Versions: 10

Compression:

Stored size: 559 Bytes

Contents

SimpleDiscussion::Engine.routes.draw do
  scope module: :simple_discussion do
    resources :forum_threads, path: :threads do
      collection do
        get :answered
        get :unanswered
        get :mine
        get :participating
        get "category/:id", to: "forum_categories#index", as: :forum_category
      end

      resources :forum_posts, path: :posts do
        member do
          put :solved
          put :unsolved
        end
      end

      resource :notifications
    end
  end

  root to: "simple_discussion/forum_threads#index"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
simple_discussion-1.3.0 config/routes.rb
simple_discussion-1.2.0 config/routes.rb
simple_discussion-1.0.1 config/routes.rb
simple_discussion-1.0.0 config/routes.rb
simple_discussion-0.9.5 config/routes.rb
simple_discussion-0.9.4 config/routes.rb
simple_discussion-0.9.3 config/routes.rb
simple_discussion-0.9.2 config/routes.rb
simple_discussion-0.9.1 config/routes.rb
simple_discussion-0.9.0 config/routes.rb