Sha256: 41da6013ffe6cbfc8ba58941ca54b4e92f757d805a9a3dd191f1a69fe12e6bcc

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

MyForum::Engine.routes.draw do
  root 'welcome#index'

  match 'signin', to: 'users#signin', via: [:get, :post]
  match 'logout', to: 'users#logout', via: [:get]
  match 'forgot_password',  to: 'users#forgot_password',    via: [:get, :post]

  match 'unread_topics',    to: 'forums#unread_topics',     via: [:get], as: :unread_topics
  match 'mark_all_as_read', to: 'forums#mark_all_as_read',  via: [:get], as: :mark_all_as_read

  match 'post/:id',         to: 'posts#show',               via: [:get], as: :post_content

  resources :images
  resources :avatars
  resources :attachments

  resources :users do
    patch :avatar_update

    collection do
      get :autocomplete
    end
  end

  resources :private_messages

  resources :forums, only: [:index, :show] do
    resources :topics do
      patch :pin
      patch :close
      patch :delete
      resources :posts
    end
  end

  namespace :admin do
    root 'dashboard#index'

    match 'forums', to: 'forums#index', via: [:get]
    match 'mail_list', to: 'mail#index', via: [:get, :post]

    resources :emoticons
    resources :users
    resources :roles
    resources :categories do
      resources :forums
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta36 config/routes.rb
my_forum-0.0.1.beta35 config/routes.rb
my_forum-0.0.1.beta34 config/routes.rb
my_forum-0.0.1.beta33 config/routes.rb
my_forum-0.0.1.beta32 config/routes.rb
my_forum-0.0.1.beta31 config/routes.rb
my_forum-0.0.1.beta30 config/routes.rb
my_forum-0.0.1.beta29 config/routes.rb