Sha256: 09b8ef87efcde3c0aed3f7993f1fc5476388ebb1b4a6455edcc2bdbfc5161adc

Contents?: true

Size: 1.66 KB

Versions: 20

Compression:

Stored size: 1.66 KB

Contents

Dorsale::Engine.routes.draw do
  resources :comments, only: [:create, :edit, :update, :destroy]

  resources :users, except: [:destroy]

  namespace :small_data do
    resources :filters, only: [:create]
  end



  namespace :alexandrie do
    resources :attachments, only: [:create, :edit, :update, :destroy]
  end


  namespace :flyboy do
    resources :folders do
      member do
        patch :open
        patch :close
      end
    end

    resources :tasks do
      get :summary, on: :collection
      member do
        patch :complete
        patch :snooze
      end
    end

    resources :task_comments, only: [:create]
  end

  namespace :billing_machine do
    resources :invoices, except: [:destroy] do
      member do
        get :copy
        patch :pay
        match :email, via: [:get, :post]
      end
    end

    resources :quotations do
      post :copy, on: :member
      get :create_invoice, on: :member
    end
  end

  namespace :customer_vault do
    resources :corporations, except: [:index] do
      resources :links, except: [:index]
    end

    resources :individuals, :except => [:index] do
      resources :links, except: [:index]
    end

    namespace :people do
      get "/", action: "index"
      get :activity
      get :list
    end
  end

  namespace :expense_gun do
    resources :expenses, except: [:destroy] do
      resources :expense_lines
      member do
        %w(submit accept refuse cancel).map { |action| patch action }
      end
    end

    get "/expenses/state/:state" => "expenses#index"
    get "/expenses/state/:state/page/:page" => "expenses#index"

    get "/" => redirect{ ExpenseGun::Engine.routes.url_helpers.expenses_path }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
dorsale-2.6.8 config/routes.rb
dorsale-2.6.7 config/routes.rb
dorsale-2.6.6 config/routes.rb
dorsale-2.6.5 config/routes.rb
dorsale-2.6.4 config/routes.rb
dorsale-2.6.3 config/routes.rb
dorsale-2.6.2 config/routes.rb
dorsale-2.6.1 config/routes.rb
dorsale-2.6.0 config/routes.rb
dorsale-2.5.0 config/routes.rb
dorsale-2.4.3 config/routes.rb
dorsale-2.4.2 config/routes.rb
dorsale-2.4.1 config/routes.rb
dorsale-2.4.0 config/routes.rb
dorsale-2.3.5 config/routes.rb
dorsale-2.3.4 config/routes.rb
dorsale-2.3.3 config/routes.rb
dorsale-2.3.2 config/routes.rb
dorsale-2.3.1 config/routes.rb
dorsale-2.3.0 config/routes.rb