micro-blogger/config/routes.rb
2018-11-11 18:38:16 -06:00

16 lines
398 B
Ruby

# frozen_string_literal: true
Rails.application.routes.draw do
concern :api_base do
post 'authenticate', to: 'authentication#authenticate', as: :authenticate
resources :users
resources :blogs
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