18 lines
364 B
Elixir
18 lines
364 B
Elixir
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
|