From 881df134b40d413f7562e1ebed5462633389ed02 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 21 Feb 2023 20:07:22 -0600 Subject: AƱade namespace :api a las rutas MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index b0c276c..ff9a773 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,7 @@ Rails.application.routes.draw do # Defines the root path route ("/") # root "articles#index" - scope module: 'api' do - resources :accounts, only: [:create] + namespace :api do + resources :user_accounts, only: %i[show create] end end -- cgit v1.2.3