summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-22 20:24:20 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-22 20:24:20 -0600
commite04c9e0fe1b9df2e8e40b87c8a272874192a8d07 (patch)
treeb724bf79034c4f4f9e3ba4ab656b417bc48be575 /config
parent25fd0c4da93d664747eb5e6eca25413cead97452 (diff)
Añade AddressesController
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 06c5a88..249bb71 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -9,6 +9,10 @@ Rails.application.routes.draw do
post '/login', to: 'sessions#create'
delete '/logout', to: 'sessions#destroy'
get '/account', to: 'user_accounts#show'
+ get '/account/addresses', to: 'addresses#index'
+ post '/account/addresses', to: 'addresses#create'
+ put '/account/addresses/:id', to: 'addresses#update'
+ delete '/account/addresses/:id', to: 'addresses#destroy'
put '/account', to: 'user_accounts#update'
resources :companies, only: %i[index show create update]
resources :products, only: %i[index show create update destroy]