micro-blogger/config/routes.rb
2018-11-10 20:34:11 -06:00

15 lines
377 B
Ruby

# frozen_string_literal: true
Rails.application.routes.draw do
concern :api_base do
post 'authenticate', to: 'authentication#authenticate', as: :authenticate
resources :users
end
namespace :v1, defaults: { format: :json } do
concerns :api_base
end
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end