diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 148abe2..ccf7b44 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,6 +14,9 @@ Rails.application.routes.draw do put '/account/addresses/:id', to: 'addresses#update' delete '/account/addresses/:id', to: 'addresses#destroy' get '/account/cards', to: 'cards#index' + post '/account/cards', to: 'cards#create' + put '/account/cards/:id', to: 'cards#update' + delete '/account/cards/:id', to: 'cards#destroy' put '/account', to: 'user_accounts#update' resources :companies, only: %i[index show create update] resources :products, only: %i[index show create update destroy] |