From 4a1faf270ae328a1a28d9f8f54d9a96ed41a1542 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 26 Feb 2023 20:20:02 -0600 Subject: Añade métodos de controladores faltantes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 114d58b..8a789a2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,10 +6,10 @@ Rails.application.routes.draw do # Defines the root path route ("/") # root "articles#index" namespace :api do - post '/refresh_token', to: 'authentications#refresh' post '/authenticate', to: 'authentications#create' delete '/logout', to: 'authentications#destroy' get '/user_account', to: 'user_accounts#show' resources :user_accounts, only: %i[create] + resources :refresh_tokens, only: %i[create] end end -- cgit v1.2.3