diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-12-19 17:35:14 +0000 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-12-19 17:35:14 +0000 |
commit | 1ff9ffed83b098ebc0921e70c1636c6c1fb0b18c (patch) | |
tree | be2a6196379ecf260e6e8c70c4325e94097952f1 /lib/pleroma/web/router.ex | |
parent | bd853199d93e03fedf43397455939c6d633fa36b (diff) | |
parent | e1b89fe3aa2c03576a6f2418c1e83c0ed64707a3 (diff) | |
download | pleroma-1ff9ffed83b098ebc0921e70c1636c6c1fb0b18c.tar.gz |
Merge branch 'live-dashboard' into 'develop'
Add Phoenix LiveDashboard
See merge request pleroma/pleroma!3566
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 197e1f346..3f708a985 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -4,6 +4,7 @@ defmodule Pleroma.Web.Router do use Pleroma.Web, :router + import Phoenix.LiveDashboard.Router pipeline :accepts_html do plug(:accepts, ["html"]) @@ -763,6 +764,11 @@ defmodule Pleroma.Web.Router do end end + scope "/" do + pipe_through([:pleroma_html, :authenticate, :require_admin]) + live_dashboard("/phoenix/live_dashboard") + end + # Test-only routes needed to test action dispatching and plug chain execution if Pleroma.Config.get(:env) == :test do @test_actions [ |