Sha256: f4530eab42f1636998dcf428e49ea3895a8a3fa3575b4a5b31397944806d03c9
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
Pageflow::Engine.routes.draw do resources :entries, :only => [:edit, :update], :shallow => true do get :partials, :on => :member resources :revisions, :only => [:show, :create] do delete :current, :to => 'revisions#depublish_current', :on => :collection end resources :chapters, :only => [:create, :update, :destroy] do collection do patch :order end resources :pages, :only => [:create, :update, :destroy] do collection do patch :order end end end resource :edit_lock end namespace :editor do resources :entries, :only => :index, :shallow => true do resources :image_files, :only => [:index, :create, :update] do get :retry, :on => :member end resources :video_files, :only => [:index, :create, :update] do get :retry, :on => :member end resources :audio_files, :only => [:index, :create, :update] do get :retry, :on => :member end resources :file_usages, :only => [:create, :destroy] end resources :quotas, :only => [:show] end root :to => redirect('/admin') get ':entry_id/videos/:id', :to => 'video_files#show', :as => :short_video_file resources :entries, :only => [:show] get ':id', :to => 'entries#show', :as => :short_entry get ':id/pages/:page_index', :to => 'entries#page' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.1.0 | config/routes.rb |