Sha256: 34d32470ab569a699cc0f4074787ccfb17f63b6d0d6f4e30b20dc420b9ad644e
Contents?: true
Size: 1.35 KB
Versions: 43
Compression:
Stored size: 1.35 KB
Contents
PgHero::Engine.routes.draw do scope "(:database)", constraints: proc { |req| (PgHero.config["databases"].keys + [nil]).include?(req.params[:database]) } do 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" post "kill_long_running_queries", to: "home#kill_long_running_queries" post "kill_all", to: "home#kill_all" post "enable_query_stats", to: "home#enable_query_stats" post "explain", to: "home#explain" post "reset_query_stats", to: "home#reset_query_stats" # legacy routes get "system_stats" => redirect("system") get "query_stats" => redirect("queries") root to: "home#index" end end
Version data entries
43 entries across 43 versions & 2 rubygems
Version | Path |
---|---|
pghero-2.0.2 | config/routes.rb |
pghero-2.0.1 | config/routes.rb |
pghero-2.0.0 | config/routes.rb |