Sha256: 0e0d2b3164f99322b554ad4197ce1771a817dae92b367e34a162bddc88e2bcc3
Contents?: true
Size: 1.22 KB
Versions: 8
Compression:
Stored size: 1.22 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' 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
8 entries across 8 versions & 1 rubygems