Sha256: 94a11325d164ce16aea0877e2e6e0d89ffbc6db966a8fb68e1ee25f7c115316d

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

Rails.application.routes.draw do
  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
    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]
    root "users#index"
  end

  root "main/pages#index"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loco-rails-0.0.1 test/dummy/config/routes.rb