From e3b19598c75790758995f9db206427135d6851c2 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 3 Mar 2023 20:58:01 -0600 Subject: Renombra AuthenticationsController a SessionsController --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') 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] -- cgit v1.2.3