Created
April 12, 2022 06:14
-
-
Save wttj-tech/10b55d4a3c2f9bd96f6650d16080c545 to your computer and use it in GitHub Desktop.
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 WttjApiWeb.Api.UserView do | |
use WttjApiWeb, :view | |
def render("user.json", %{user: user}) do | |
%{ | |
gender: user.gender, | |
title: user.title | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment