Sha256: b1f4dcaba1ca8e9725f810bf6d4a34ea028146663be0c1461fb06f09e88963f9

Contents?: true

Size: 1006 Bytes

Versions: 1

Compression:

Stored size: 1006 Bytes

Contents

Dummy::Application.routes.draw do
  devise_for :users

  concern :resourcable do
    get    'options',     :on => :collection
    get    'query',       :on => :collection
    post   'query',       :on => :collection
    get    'export',      :on => :collection
    post   'export',      :on => :collection
    get    'import',      :on => :collection
    post   'import',      :on => :collection
    patch  'import',      :on => :collection
    delete 'import',      :on => :collection
    delete 'bulk_delete', :on => :collection

    get    'taggings',    :on => :collection
    get    'filters',     :on => :collection

    get    'diff',        :on => :member
    post   'merge',       :on => :member

    get    'bulk_edit',   on: :collection
    patch  'bulk_update', on: :collection
    post   'bulk_update', on: :collection

  end

  resources :employees, :projects, :tasks, :positions, :skills, :accounts,
    :employee_with_nesteds, :users, concerns: [:resourcable]

  root 'employees#index'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
basepack-0.0.2 spec/dummy_app/config/routes.rb