Skip to content

Commit

Permalink
allow dots at all routes where we are using plans
Browse files Browse the repository at this point in the history
  • Loading branch information
annvelents committed Aug 30, 2024
1 parent 05431a2 commit a6e0dfd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
resources :subscriptions, only: %i[create update show index], param: :external_id
delete '/subscriptions/:external_id', to: 'subscriptions#terminate', as: :terminate

resources :add_ons, param: :code
resources :billable_metrics, param: :code
resources :add_ons, param: :code, code: /.*/
resources :billable_metrics, param: :code, code: /.*/

resources :coupons, param: :code
resources :coupons, param: :code, code: /.*/
resources :credit_notes, only: %i[create update show index] do
post :download, on: :member
put :void, on: :member
Expand All @@ -63,7 +63,7 @@
end
resources :payment_requests, only: %i[create index]
resources :plans, param: :code, code: /.*/
resources :taxes, param: :code
resources :taxes, param: :code, code: /.*/
resources :wallet_transactions, only: :create
get '/wallets/:id/wallet_transactions', to: 'wallet_transactions#index'
resources :wallets, only: %i[create update show index]
Expand Down

0 comments on commit a6e0dfd

Please sign in to comment.