config/routes.rb in pghero-1.7.0 vs config/routes.rb in pghero-2.0.0

- old
+ new

@@ -1,16 +1,19 @@ PgHero::Engine.routes.draw do scope "(:database)", constraints: proc { |req| (PgHero.config["databases"].keys + [nil]).include?(req.params[:database]) } do - get "index_usage", to: "home#index_usage" get "space", to: "home#space" + get "space/:relation", to: "home#relation_space", as: :relation_space + get "index_bloat", to: "home#index_bloat" get "live_queries", to: "home#live_queries" get "queries", to: "home#queries" + get "queries/:query_hash", to: "home#show_query", as: :show_query get "system", to: "home#system" get "cpu_usage", to: "home#cpu_usage" get "connection_stats", to: "home#connection_stats" get "replication_lag_stats", to: "home#replication_lag_stats" get "load_stats", to: "home#load_stats" + get "free_space_stats", to: "home#free_space_stats" get "explain", to: "home#explain" get "tune", to: "home#tune" get "connections", to: "home#connections" get "maintenance", to: "home#maintenance" post "kill", to: "home#kill" @@ -21,10 +24,9 @@ post "reset_query_stats", to: "home#reset_query_stats" # legacy routes get "system_stats" => redirect("system") get "query_stats" => redirect("queries") - get "indexes" => redirect("index_usage") root to: "home#index" end end