Rails.application.routes.draw do
  resources :districts do
    resources :schools, only: %i[index show] do
      resources :overview, only: [:index]
      resources :categories, only: [:show], path: "browse"
      resources :analyze, only: [:index]
    end
  end

  get :reports, to: "reports#index"
  get "reports/gps", to: "gps#index"
  get :exports, to: "exports#index"
  get "exports/csv", to: "exports#show"

  get "/welcome", to: "home#index"
  root to: "home#index"

  # mount PgHero::Engine, at: "pghero" # remove in development env to see suggestions at localhost:3000/pghero
end
