Sha256: 00e2cd0cf308451948175cfa3d7c79feb4cc280ce351eb80b7acbba3ee1b00e1

Contents?: true

Size: 1.82 KB

Versions: 2

Compression:

Stored size: 1.82 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: [:index, :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 :id_cards, except: [:destroy, :show]
    resources :payment_terms, except: [:destroy, :show]

    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 :categories, except: [:destroy, :show]

    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

2 entries across 2 versions & 1 rubygems

Version Path
dorsale-3.0.3 config/routes.rb
dorsale-3.0.2 config/routes.rb