Rails.application.routes.draw do
  devise_for :users, :controllers => {:registrations => "users/registrations",:passwords => "users/passwords"} 
  use_doorkeeper
  namespace :api, defaults: {format: 'json'} do
    namespace :v1 do
      resources :users
      # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
      get '/me', to: 'authenticated_api#me'
    end
  end
end
