Rails.application.routes.draw do
  namespace :api do
    namespace :v1 do
      resources :users do
        resources :appointments
      end

      post '/login', to: 'users#login'
      get '/auto_login', to: 'users#auto_login'

      resources :therapists do
        resources :appointments
      end
    end
  end
end
