Sha256: 955ef28aa6912cb819df9a4e3777a85bad81d4aad219c79c340c64e83dcd4118
Contents?: true
Size: 988 Bytes
Versions: 11
Compression:
Stored size: 988 Bytes
Contents
Refinery::Core::Engine.routes.draw do root to: 'pages#home', via: :get get '/pages/:id', to: 'pages#show', as: :page namespace :pages, path: '' do namespace :admin, path: Refinery::Core.backend_route do scope path: :pages do post 'preview', to: 'preview#show', as: :preview_pages patch 'preview/*path', to: 'preview#show', as: :preview_page end end end namespace :admin, path: Refinery::Core.backend_route do get 'pages/*path/edit', to: 'pages#edit', as: 'edit_page' get 'pages/*path/children', to: 'pages#children', as: 'children_pages' patch 'pages/*path', to: 'pages#update', as: 'update_page' delete 'pages/*path', to: 'pages#destroy', as: 'delete_page' resources :pages, except: :show do post :update_positions, on: :collection end resources :pages_dialogs, only: [] do collection do get :link_to end end resources :page_parts, only: [:new, :create, :destroy] end end
Version data entries
11 entries across 11 versions & 1 rubygems