Rails.application.routes.draw do
  
  resources :readings, only: [:new, :create, :index] do
    get "/debug", action: :debug, on: :collection
  end
  get "/add-person" => 'readings#add_person'

  resources :contactings do
    get "success", on: :collection, as: :success
  end

  resources :data do

  end

  resources :reminders do

  end

  controller :reminders do
    get "/cdc",     action: :new
  end

  controller :main do
    post "/token",  action: :token
    get "/faq",     action: :faq, as: :faq
    get "/initiative", action: :initiative
    get "/privacy", action: :privacy
    get "/terms",   action: :terms
  end

  root "readings#index"
end
