summaryrefslogtreecommitdiff
path: root/config/routes.rb
blob: 45fa0518b430df169cae86d4df977a4e9cb3fb49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

Rails.application.routes.draw do
  # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html

  # 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