Sha256: f882bfd28ba5b55baaa005a99ffa5f88e4bcfa58ee77f107c8cf511ebd038254

Contents?: true

Size: 546 Bytes

Versions: 13

Compression:

Stored size: 546 Bytes

Contents

Fuel::Engine.routes.draw do

  scope module: 'fuel' do

    root to: 'posts#index', as: :blog_root
    # admin namespace is listed first intentionally
    namespace :admin do
      root to: 'posts#index'
      get "posts/preview" => 'posts#preview'
      get "posts/:slug/posts/preview" => 'posts#preview'
      resources :posts do
        member do
          get 'content'
        end
      end
      resources :authors
    end

    get '/posts'=> 'posts#index'
    resources :posts, path: ''
    get '/posts/:id' => 'posts#redirect'

  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fuel-0.3.32 config/routes.rb
fuel-0.3.31 config/routes.rb
fuel-0.3.30 config/routes.rb
fuel-0.3.29 config/routes.rb
fuel-0.3.28 config/routes.rb
fuel-0.3.27 config/routes.rb
fuel-0.3.26 config/routes.rb
fuel-0.3.25 config/routes.rb
fuel-0.3.24 config/routes.rb
fuel-0.3.23 config/routes.rb
fuel-0.3.22 config/routes.rb
fuel-0.3.21 config/routes.rb
fuel-0.3.20 config/routes.rb