feat: added membersLiveView for testing Primer components
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
carla 2025-05-08 14:24:18 +02:00
parent e0a15b1a57
commit e0f8b69315
5 changed files with 76 additions and 41 deletions

View file

@ -2,22 +2,23 @@ defmodule MvWeb.Router do
use MvWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, html: {MvWeb.Layouts, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_live_flash)
plug(:put_root_layout, html: {MvWeb.Layouts, :root})
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
end
pipeline :api do
plug :accepts, ["json"]
plug(:accepts, ["json"])
end
scope "/", MvWeb do
pipe_through :browser
pipe_through(:browser)
get "/", PageController, :home
get("/", PageController, :home)
live("/members", MembersLive, :index)
end
# Other scopes may use custom stacks.
@ -35,10 +36,10 @@ defmodule MvWeb.Router do
import Phoenix.LiveDashboard.Router
scope "/dev" do
pipe_through :browser
pipe_through(:browser)
live_dashboard "/dashboard", metrics: MvWeb.Telemetry
forward "/mailbox", Plug.Swoosh.MailboxPreview
live_dashboard("/dashboard", metrics: MvWeb.Telemetry)
forward("/mailbox", Plug.Swoosh.MailboxPreview)
end
end
@ -46,9 +47,9 @@ defmodule MvWeb.Router do
import AshAdmin.Router
scope "/admin" do
pipe_through :browser
pipe_through(:browser)
ash_admin "/"
ash_admin("/")
end
end
end