Sha256: e1fbad98470165ea0861d1100cf50fd595db5fb867d9b79b5bf5c5acb92e52bc

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
expense_gun-1.0.3 config/routes.rb
expense_gun-1.0.2 config/routes.rb
expense_gun-1.0.1 config/routes.rb
expense_gun-1.0.0 config/routes.rb