# frozen_string_literal: true

FacilitiesApi::Engine.routes.draw do
  namespace :v1, defaults: { format: 'json' } do
    resources :ccp, only: :index do
      collection do
        get 'urgent_care',  to: 'ccp#urgent_care'
        get 'provider',     to: 'ccp#provider'
        get 'pharmacy',     to: 'ccp#pharmacy'
        get 'specialties',  to: 'ccp#specialties'
      end
    end

    resources :va, only: %i[index show]
  end

  resources :apidocs, only: [:index]
end
