this repo has no description
1defmodule EslHnWeb.Router do
2 use EslHnWeb, :router
3
4 pipeline :api do
5 plug :accepts, ["json"]
6 end
7
8 scope "/", EslHnWeb do
9 pipe_through :api
10
11 get "/", API.Controller, :index
12 get "/:id", API.Controller, :show
13 end
14
15 if Application.compile_env(:esl_hn, :dev_routes) do
16 import Phoenix.LiveDashboard.Router
17
18 scope "/dev" do
19 pipe_through [:fetch_session, :protect_from_forgery]
20
21 live_dashboard "/dashboard", metrics: EslHnWeb.Telemetry
22 end
23 end
24end