2017-12-09 14:58:37 +01:00
|
|
|
defmodule EventosWeb.SessionView do
|
|
|
|
use EventosWeb, :view
|
|
|
|
|
2018-01-09 17:52:26 +01:00
|
|
|
def render("token.json", %{token: token, user: user}) do
|
|
|
|
%{token: token, user: render_one(user, EventosWeb.UserView, "user.json")}
|
2017-12-09 14:58:37 +01:00
|
|
|
end
|
|
|
|
end
|