Created
December 23, 2020 23:16
-
-
Save donrestarone/59595cfc3680087f56e82d7b9aecba3d to your computer and use it in GitHub Desktop.
phoenix controller file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule WorkshopWeb.HomeController do | |
use WorkshopWeb, :controller | |
def index(conn, _params) do | |
render( | |
conn, | |
"index.html", | |
props: Jason.encode!(%{foo: "bar"}) | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment