summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
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]