summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-03 20:58:01 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-03 20:58:01 -0600
commite3b19598c75790758995f9db206427135d6851c2 (patch)
tree3a2a87a799c746c3bd0aef4282075bfeb5bc6111 /config
parent918beb3197275af56b914250aae4950b1f64de30 (diff)
Renombra AuthenticationsController a SessionsController
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 8a789a2..b3b67a8 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -6,8 +6,8 @@ Rails.application.routes.draw do
# Defines the root path route ("/")
# root "articles#index"
namespace :api do
- post '/authenticate', to: 'authentications#create'
- delete '/logout', to: 'authentications#destroy'
+ post '/login', to: 'sessions#create'
+ delete '/logout', to: 'sessions#destroy'
get '/user_account', to: 'user_accounts#show'
resources :user_accounts, only: %i[create]
resources :refresh_tokens, only: %i[create]