From d8842d83862fc26de22b3a6ed0a89e56f87b2e7e Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 1 Apr 2023 13:07:39 -0600 Subject: AƱade controlador de Reviews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/routes.rb') 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 -- cgit v1.2.3