123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- defmodule FourlettersWeb.Router do
- use FourlettersWeb, :router
- pipeline :browser do
- plug :accepts, ["html"]
- plug :fetch_session
- plug :fetch_flash
- plug :protect_from_forgery
- plug :put_secure_browser_headers
- end
- pipeline :api do
- plug :accepts, ["json"]
- end
- scope "/", FourlettersWeb do
- pipe_through :browser
- get "/", FourlettersController, :nothing
- get "/:messenger", FourlettersController, :yo
- get "/fourletters", FourlettersController, :index
- get "/fourletters/:messenger", FourlettersController, :show
- end
-
-
-
-
-
-
-
-
-
-
-
- if Mix.env() in [:dev, :test] do
- import Phoenix.LiveDashboard.Router
- scope "/" do
- pipe_through :browser
- live_dashboard "/dashboard", metrics: FourlettersWeb.Telemetry
- end
- end
- end
|