From 80b7e4fe942638eb69a686e06e3ca99c06791da6 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 21 Feb 2023 21:03:00 -0600 Subject: AƱade controlador de autenticaciones 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') diff --git a/config/routes.rb b/config/routes.rb index ff9a773..45fa051 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,6 +6,9 @@ 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' resources :user_accounts, only: %i[show create] end end -- cgit v1.2.3