esrom/eisrom_ui/lib/eisrom_ui_web/controllers/page_controller.ex
2022-10-09 08:09:42 +02:00

15 lines
327 B
Elixir

defmodule EisromUiWeb.PageController do
use EisromUiWeb, :controller
def index(conn, _params) do
send_resp(conn, 204, "")
end
def instructions(conn, _params) do
render(conn, :instructions)
end
def morse(conn, _params) do
Phoenix.LiveView.Controller.live_render(conn, EisromUiWeb.MorseLive)
end
end