diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-01 13:07:39 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-01 13:07:39 -0600 |
commit | d8842d83862fc26de22b3a6ed0a89e56f87b2e7e (patch) | |
tree | 00f1c4e2c38d3de97e418ddaf1227ebb0f176677 /config | |
parent | bd3a6121c068f871dc5bd40c79c052e33fcd330e (diff) |
Añade controlador de Reviews
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index ccf7b44..8c671ff 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -20,6 +20,9 @@ Rails.application.routes.draw do put '/account', to: 'user_accounts#update' resources :companies, only: %i[index show create update] resources :products, only: %i[index show create update destroy] + resources :products do + resources :reviews, only: %i[index create] + end resources :user_accounts, only: %i[create] resources :refresh_tokens, only: %i[create] end |