# 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 '/login', to: 'sessions#create' delete '/logout', to: 'sessions#destroy' get '/account', to: 'user_accounts#show' resources :companies, only: %i[index show create] resources :user_accounts, only: %i[create] resources :refresh_tokens, only: %i[create] end end