# 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