fourletters_controller.ex 439 B

123456789101112131415161718
  1. defmodule FourlettersWeb.FourlettersController do
  2. use FourlettersWeb, :controller
  3. def index(conn, _params) do
  4. render(conn, "index.html")
  5. end
  6. def show(conn, %{"messenger" => messenger}) do
  7. render(conn, "show.html", messenger: messenger)
  8. end
  9. def yo(conn, %{"messenger" => messenger}) do
  10. render(conn, "yo.html", messenger: messenger)
  11. end
  12. def nothing(conn, _params) do
  13. render(conn, "nothing.html")
  14. end
  15. end