Sha256: 73c473b51b853bd59a074aecc2c369e2e943852c13fd9ecae90d7ac55677a388

Contents?: true

Size: 601 Bytes

Versions: 16

Compression:

Stored size: 601 Bytes

Contents

PushType::Core::Engine.routes.draw 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

  get 'info' => 'admin#info', as: 'info'

  root to: redirect('nodes')
    
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
push_type_admin-0.9.5 config/routes.rb
push_type_admin-0.9.3 config/routes.rb
push_type_admin-0.9.2 config/routes.rb
push_type_admin-0.9.1 config/routes.rb
push_type_admin-0.9.0 config/routes.rb
push_type_admin-0.9.0.beta.4 config/routes.rb
push_type_admin-0.9.0.beta.3 config/routes.rb
push_type_admin-0.9.0.beta.2 config/routes.rb
push_type_admin-0.8.2 config/routes.rb
push_type_admin-0.8.1 config/routes.rb
push_type_admin-0.8.0 config/routes.rb
push_type_admin-0.8.0.beta.3 config/routes.rb
push_type_admin-0.8.0.beta.2 config/routes.rb
push_type_admin-0.8.0.beta.1 config/routes.rb
push_type_admin-0.3.3 config/routes.rb
push_type_admin-0.3.1 config/routes.rb