Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: allow code for plans_controller#show to contain dots #2434

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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 @@ -62,8 +62,8 @@
put :finalize, on: :member
end
resources :payment_requests, only: %i[create index]
resources :plans, param: :code
resources :taxes, param: :code
resources :plans, param: :code, 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