Sha256: 18a99a01a1eb75cb2ebcd3e97bc2446153f6a9a6aeaa55c1a0a4f617b9230293
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
Mks::Edm::Engine.routes.draw do resources :equipment_locations, only: %i[index create update] resources :location_types, only: %i[index create update] resources :equipment_types, only: %i[index show create update] do member do get 'categories', controller: :equipment_categories, action: :index get 'nodes', controller: :equipment_categories, action: :nodes end end get '/equipment_types/nodes', controller: :equipment_types, action: :nodes resources :equipment_categories, only: %i[show create update] do member do get 'equipments', controller: :equipments, action: :index get 'nodes', controller: :equipments, action: :nodes end end resources :equipments, only: %i[show create update] do member do get 'items', controller: :equipment_items, action: :index get 'nodes', controller: :equipment_items, action: :nodes end end resources :equipment_items, only: %i[show create update] do member do get 'valuations', controller: :equipment_valuations, action: :index get 'valuation', controller: :equipment_valuations, action: :valuation get 'components', controller: :equipment_components, action: :index end end resources :equipment_valuations, only: %i[show create update] resources :equipment_components, except: %i[index] get '/filtered_equipments', controller: :equipments, action: :filter get '/filtered_items', controller: :equipment_items, action: :filter get '/service_providers', controller: :equipment_locations, action: :service_providers get '/stores', controller: :equipment_locations, action: :stores end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mks_edm-1.0.5 | config/routes.rb |
mks_edm-1.0.4 | config/routes.rb |
mks_edm-1.0.2 | config/routes.rb |
mks_edm-1.0.1 | config/routes.rb |