Mount oban_web

This commit is contained in:
Claudio Ortolina
2025-04-14 17:14:39 +01:00
parent a3b6510c40
commit 7c0cee4732
6 changed files with 15 additions and 1 deletions
+3
View File
@@ -2,6 +2,7 @@ defmodule MusicLibraryWeb.Router do
use MusicLibraryWeb, :router
import MusicLibraryWeb.Auth, only: [require_logged_in: 2, require_api_token: 2]
import Oban.Web.Router
pipeline :browser do
plug :accepts, ["html"]
@@ -80,6 +81,8 @@ defmodule MusicLibraryWeb.Router do
metrics: MusicLibraryWeb.Telemetry,
metrics_history: {MusicLibraryWeb.Telemetry.Storage, :metrics_history, []},
ecto_repos: [MusicLibrary.Repo, MusicLibrary.ErrorRepo]
oban_dashboard "/oban"
end
end
end