diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
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] |