diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-30 17:29:40 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-30 17:29:40 -0600 |
commit | 2ae0cd8a8dc6d630ee1a7a84ddf6111609dbdeb7 (patch) | |
tree | bbcaadbea3da32ee974d28cfb37c1af4be018215 /config | |
parent | efc5eb10894fc95487c55628b94024e97cd60139 (diff) |
Mejora la estructura de los specs
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] |