Skip to content

Commit

Permalink
Expose /admin2 only on the admin pod
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIvanoff committed Nov 3, 2023
1 parent f3221e0 commit eb09232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sanbase_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule SanbaseWeb.Router do
end

scope "/admin2", SanbaseWeb do
pipe_through([:browser, :basic_auth])
pipe_through([:admin_pod_only, :browser, :basic_auth])
import Phoenix.LiveDashboard.Router

live_dashboard("/dashboard", metrics: SanbaseWeb.Telemetry, ecto_repos: [Sanbase.Repo])
Expand Down

0 comments on commit eb09232

Please sign in to comment.