Remove distracting extra code

This commit is contained in:
Maciej 2026-03-01 10:25:51 +02:00
parent f1bd4a0fdd
commit 47b0d73cc5
Signed by: maciej
GPG key ID: 28243AF437E32F99
13 changed files with 1 additions and 298 deletions

View file

@ -1,25 +1,10 @@
defmodule BirdyChatWeb.Router do
use BirdyChatWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, html: {BirdyChatWeb.Layouts, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", BirdyChatWeb do
pipe_through :browser
get "/", PageController, :home
end
scope "/api", BirdyChatWeb.Api do
pipe_through [:api]
@ -32,7 +17,7 @@ defmodule BirdyChatWeb.Router do
# pipe_through :api
# end
# Enable LiveDashboard and Swoosh mailbox preview in development
# Enable LiveDashboard in development
if Application.compile_env(:birdy_chat, :dev_routes) do
# If you want to use the LiveDashboard in production, you should put
# it behind authentication and allow only admins to access it.
@ -45,7 +30,6 @@ defmodule BirdyChatWeb.Router do
pipe_through :browser
live_dashboard "/dashboard", metrics: BirdyChatWeb.Telemetry
forward "/mailbox", Plug.Swoosh.MailboxPreview
end
end
end