summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-21 21:03:00 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-21 21:03:00 -0600
commit80b7e4fe942638eb69a686e06e3ca99c06791da6 (patch)
tree69ba2bd7e2efe6ccb9895f529fe16e60c5612ffa /config
parent01eff97bd1a2d2e23e6b894f4b19a57ba6b5d10d (diff)
Añade controlador de autenticaciones
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 3 insertions, 0 deletions
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