Sha256: fc719d09cd84ee6cdc039e36864c39662e147d59c8076acce76418a871f4408f
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 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, only: [:index, :show], path: '' get '/posts/:id' => 'posts#redirect' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fuel-0.3.34 | config/routes.rb |
fuel-0.3.33 | config/routes.rb |