fp/services/bright/lib/bright_web/controllers/hello_controller.ex

18 lines
364 B
Elixir
Raw Normal View History

2025-01-03 14:45:35 +00:00
defmodule BrightWeb.HelloController do
use BrightWeb, :controller
# plug :put_view, html: HelloWeb.PageHTML, json: HelloWeb.PageJSON
def index(conn, _params) do
render(conn, :index)
end
def show(conn, %{"messenger" => messenger}) do
conn
|> assign(:messenger, messenger)
|> assign(:receiver, "Dweezil")
|> render(:show)
end
end