Sha256: 20efc8d35f57370d557ab0e3e77b17caf5477a5b638f4b764716752018232f96

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

Mks::Rate::Engine.routes.draw do
  resources :rate_change_requests do
    member do
      get 'approve', controller: :rate_change_requests, action: :approve
    end
  end

  resources :service_bundles do
    member do
      get 'discounts', controller: :bundle_discounts, action: :index
      get 'services', controller: :service_bundles, action: :services
      post 'services', controller: :service_bundles, action: :add_services
    end
  end
  resources :service_types
  resources :service_delivery_units do
    member do
      get 'services', controller: :chargeable_services, action: :sdu_services
      get 'bundles', controller: :service_bundles, action: :sdu_bundles
    end
  end
  resources :chargeable_services, only: [:index, :create, :update]
  get 'chargeable_services/filter', controller: :chargeable_services, action: :filter
  resources :unit_of_charges
  resources :service_rate_settings do
    member do
      post 'change_status', controller: :service_rate_settings, action: :change_status
    end
  end
  resources :service_rates, only: [:index]
  get '/service_rates/working_rates', controller: :service_rates, action: :working_rates
  resources :bundle_discounts
  get '/filtered_bundles', controller: :service_bundles, action: :filter
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mks_rate-1.0.5 config/routes.rb
mks_rate-1.0.4 config/routes.rb
mks_rate-1.0.3 config/routes.rb
mks_rate-1.0.2 config/routes.rb
mks_rate-1.0.1 config/routes.rb