summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-06 13:29:17 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-06 13:29:17 -0600
commitb7455b581022059a87633864c2ac2751b035e1e1 (patch)
tree30c9afae248c52b32af394d22a172c7c007d7a49 /config
parent4e3d24a5c68e3ab951fe0cf388bdc2ea1fdc050e (diff)
Añadido controlador de carrito
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 8c671ff..af97ac4 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -13,6 +13,9 @@ Rails.application.routes.draw do
post '/account/addresses', to: 'addresses#create'
put '/account/addresses/:id', to: 'addresses#update'
delete '/account/addresses/:id', to: 'addresses#destroy'
+ get '/account/cart', to: 'carts#show'
+ post '/account/cart', to: 'carts#create'
+ delete '/account/cart/:id', to: 'carts#destroy'
get '/account/cards', to: 'cards#index'
post '/account/cards', to: 'cards#create'
put '/account/cards/:id', to: 'cards#update'