Sha256: 09cf6a3fa37f203a30eb3feb4866f3265d6fa984e99f15549730556871c0d80e

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

PagesCms::Engine.routes.draw do

  resources :articles,    only: [:show]
  resources :contacts,    only: [:create]

  namespace :admin do
    resources :pages,     except: [:show, :new]
    resources :images,    only:   [:create, :index, :destroy]
    resources :articles,  except: [:show]
    resources :contacts,  only:   [:index, :destroy]
    resources :accounts,  only:   [:create, :new, :edit, :update]
  end

  get '/'             => 'pages#home',          as: 'root'
  get '/:slug'        => 'pages#show',          as: 'page'

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_cms-1.1.0 config/routes.rb