Sha256: f5e8437283cb18d7a8b6a5ef88c0568eed5d0c1e82b3cf7b99bed2efffd87c05

Contents?: true

Size: 1.06 KB

Versions: 20

Compression:

Stored size: 1.06 KB

Contents

Rails.application.routes.draw do
  namespace :user do
    get 'members/index'
  end

  mount Loco::Engine => "/notification-center"

  namespace :user do
    resources :sessions, only: [:new, :create, :destroy]
    resources :articles do
      member do
        put :publish
      end
      resources :comments, except: [:new, :create]
    end
    resources :rooms, only: [:index, :new, :create, :show, :destroy] do
      member do
        patch :join, :leave
      end
      resources :members, only: [:index]
    end
    root "articles#index"
  end

  scope module: 'main' do
    resources :users, only: [:new, :create]
    resources :articles, only: [:index, :show] do
      resources :comments, only: [:index, :create, :show]
    end
  end

  namespace :admin do
    resources :users
    resources :sessions, only: [:new, :create, :destroy]
    resources :articles, only: [:show, :edit, :update] do
      collection do
        get :published
      end
      resources :comments, only: [:index, :show, :edit, :update]
    end
    root "users#index"
  end

  root "main/pages#index"
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
loco-rails-2.5.3 test/dummy/config/routes.rb
loco-rails-2.5.2 test/dummy/config/routes.rb
loco-rails-2.5.1 test/dummy/config/routes.rb
loco-rails-2.5.0 test/dummy/config/routes.rb
loco-rails-2.4.0 test/dummy/config/routes.rb
loco-rails-2.3.0 test/dummy/config/routes.rb
loco-rails-3.0.0 test/dummy/config/routes.rb
loco-rails-2.2.2 test/dummy/config/routes.rb
loco-rails-2.2.1 test/dummy/config/routes.rb
loco-rails-2.2.0 test/dummy/config/routes.rb
loco-rails-2.1.0 test/dummy/config/routes.rb
loco-rails-2.0.0 test/dummy/config/routes.rb
loco-rails-1.5.2 test/dummy/config/routes.rb
loco-rails-1.5.1 test/dummy/config/routes.rb
loco-rails-1.5.0 test/dummy/config/routes.rb
loco-rails-1.4.0 test/dummy/config/routes.rb
loco-rails-1.3.3 test/dummy/config/routes.rb
loco-rails-1.3.2 test/dummy/config/routes.rb
loco-rails-1.3.1 test/dummy/config/routes.rb
loco-rails-1.3.0 test/dummy/config/routes.rb