2018-11-10 10:40:22 -06:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-09 20:51:38 -06:00
|
|
|
Rails.application.routes.draw do
|
2018-11-10 18:46:47 -06:00
|
|
|
concern :api_base do
|
|
|
|
post 'authenticate', to: 'authentication#authenticate', as: :authenticate
|
|
|
|
resources :users
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace :v1, defaults: { format: :json } do
|
|
|
|
concerns :api_base
|
|
|
|
end
|
|
|
|
|
2018-11-09 20:51:38 -06:00
|
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
|
|
end
|