Hi all,
I have this very simple 1.6 view I would like to convert to a 1.7 view:
defmodule MyAppWeb.Api.FacetView do
use MyAppWeb, :view
def render("facet.json", %{facet: facet}) do
facet
end
end
IIUC I have to create a MyAppWeb.FacetJSON
module but the render
function what should become?
Thank you