esrom/ui/lib/ui_web/router.ex
Pim Kunis ad24ec96ac Migrate from channel to phoenix live view.
Move phoenix config to ui project.
Sync progress on page load.
2019-10-23 14:38:11 +02:00

32 lines
714 B
Elixir

defmodule UiWeb.Router do
use UiWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug Phoenix.LiveView.Flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", UiWeb do
pipe_through :browser
get "/", PageController, :index
get "/ZZZZ", PageController, :instructions
get "/morse", PageController, :instructions
get "/esrom", PageController, :instructions
get "/0B13", PageController, :morse
get "/OB13", PageController, :morse
get "/seinlamp", PageController, :morse
# get "/start", PageController, :start
end
end