Sha256: 0427322be6aae55d303b1b7ec2ccf9267f030b94eda31958ff6d6fd4d2afa13e

Contents?: true

Size: 680 Bytes

Versions: 14

Compression:

Stored size: 680 Bytes

Contents

PushType::Admin::Engine.routes.draw do

  scope module: 'admin' do

    resources :nodes, except: :show do
      collection do
        get 'trash'
        delete 'trash' => 'nodes#empty'
      end
      member do
        post 'position'
        put 'restore'
      end
      resources :nodes, only: [:index, :new, :create]
    end

    resources :assets, except: :show, path: 'media' do
      collection do
        post 'upload'
        get 'trash'
        delete 'trash' => 'assets#empty'
      end
      member do
        put 'restore'
      end
    end

    resources :users, except: :show

  end

  get 'info' => 'admin#info', as: 'info'
  root to: redirect('nodes')
    
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_admin-0.12.1 config/routes.rb
push_type_admin-0.12.0 config/routes.rb
push_type_admin-0.12.0.beta.1 config/routes.rb
push_type_admin-0.11.2 config/routes.rb
push_type_admin-0.11.1 config/routes.rb
push_type_admin-0.11.0.beta.2 config/routes.rb
push_type_admin-0.11.0.beta.1 config/routes.rb
push_type_admin-0.10.4 config/routes.rb
push_type_admin-0.10.3 config/routes.rb
push_type_admin-0.10.2 config/routes.rb
push_type_admin-0.10.1 config/routes.rb
push_type_admin-0.10.0 config/routes.rb
push_type_admin-0.10.0.beta.5 config/routes.rb
push_type_admin-0.10.0.beta.3 config/routes.rb