Sha256: 4e139727ceaa6b0c8fe9e07dc8e7ef3321bc131be12c0f08b353c2fcb6ea84b4

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

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,
    :employee_with_nesteds,
    :employee_with_destroyable_nesteds, concerns: [:resourcable]

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

  root 'employees#index'
end

Version data entries

1 entries across 1 versions & 1 rubygems

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