From b7455b581022059a87633864c2ac2751b035e1e1 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 6 Apr 2023 13:29:17 -0600 Subject: AƱadido controlador de carrito MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') 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' -- cgit v1.2.3