Sha256: 29586c96bcc75a17d2c3c0413238b2f2af3fe4c531fc28b37b9a1cf4b91e299d

Contents?: true

Size: 985 Bytes

Versions: 2

Compression:

Stored size: 985 Bytes

Contents

module ActionDispatch::Routing
  
  class Mapper
    
    def merrycms_routes
      namespace :admin do
        resources :users
        
        resources :pages do
          member do
            get 'publish'
            get 'unpublish'
            get 'archive'
            get 'unarchive'
          end
        end
        
        resources :categories do
          member do
            get 'sort'
          end
          collection do
            get 'sorting'
          end
        end
        
        resources :translations do
          collection do
            get 'dump'
          end
        end
        match 'translations/pending/:language' => 'translations#pending', :as => 'pending_translations'
        match 'translations/all/:language' => 'translations#all', :as => 'all_translations'
        
        resources :images
        resources :documents
        resources :videos
        
        
        root :to => 'pages#index'
      end
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merrycms-0.1.7 lib/merrycms/rails/routes.rb
merrycms-0.1.4 lib/merrycms/rails/routes.rb