micro-blogger/config/routes.rb

16 lines
398 B
Ruby
Raw Permalink Normal View History

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
2018-11-11 10:12:43 -06:00
resources :blogs
2018-11-10 18:46:47 -06:00
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