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