blob: 114d58ba4d21e53971b9a10f3f58dd622b7a8f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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'
get '/user_account', to: 'user_accounts#show'
resources :user_accounts, only: %i[create]
end
end
|