summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-14 20:52:50 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-14 20:52:50 -0600
commit9607fcb5a9cdc7595633336881cc0dd8aa9fb8ca (patch)
treea03b7f31fdca2e531d082ac813dc341262631a85 /config/routes.rb
parent8fbeea986d06a0052ce0132717f22b6ff8bd1a04 (diff)
Corrige errores de OrdersController
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index af97ac4..bc38e3f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -21,6 +21,7 @@ Rails.application.routes.draw do
put '/account/cards/:id', to: 'cards#update'
delete '/account/cards/:id', to: 'cards#destroy'
put '/account', to: 'user_accounts#update'
+ resources :orders, only: %i[index show create]
resources :companies, only: %i[index show create update]
resources :products, only: %i[index show create update destroy]
resources :products do