From e04c9e0fe1b9df2e8e40b87c8a272874192a8d07 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Wed, 22 Mar 2023 20:24:20 -0600 Subject: AƱade AddressesController MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/routes.rb') 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] -- cgit v1.2.3