endpoint to register

This commit is contained in:
2023-02-18 09:29:20 +00:00
parent 0d2d460189
commit 931e22d0f7
5 changed files with 28 additions and 9 deletions

View File

@@ -17,4 +17,12 @@ defmodule PhoenixApiTemplateWeb.UserView do
hashed_password: user.hashed_password
}
end
def render("user_token.json", %{user: user, token: token}) do
%{
id: user.id,
email: user.email,
token: token
}
end
end