summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-21 20:07:22 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-21 20:07:22 -0600
commit881df134b40d413f7562e1ebed5462633389ed02 (patch)
treed30c4ee4ed0176ae92fe863fcaafab632b07f10d
parent8e6ebb538869135b4c6aaf6381ce0125b56f9eaa (diff)
Añade namespace :api a las rutas
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
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