Sha256: dafaa5c4985330bd578909e8e74d91094792953cfba561b1b3624524ed2cec88
Contents?: true
Size: 1.26 KB
Versions: 11
Compression:
Stored size: 1.26 KB
Contents
Rails.application.routes.draw do resources :scc_accounts do collection do post 'test_connection' put 'test_connection' get 'auto_complete_search' end member do patch 'test_connection' put 'sync' put 'bulk_subscribe' end end resources :scc_products, only: %i[index show] do member do put 'subscribe' put 'unsubscribe' end end namespace :api, :defaults => { :format => 'json' } do scope '(:apiv)', :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2, :default => true) do resources :scc_accounts, except: %i[new edit] do collection do post 'test_connection' get 'auto_complete_search' end member do put 'test_connection' put 'sync' put 'bulk_subscribe' put 'bulk_subscribe_with_repos' end end constraints(:scc_account_id => /[^\/]+/) do resources :scc_accounts, :only => [] do resources :scc_products, only: %i[index show] do member do put 'subscribe' end end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems