2018-01-13 23:33:03 +01:00
|
|
|
defmodule EventosWeb.UserSessionView do
|
2018-01-14 17:56:50 +01:00
|
|
|
@moduledoc """
|
|
|
|
View for user Sessions
|
|
|
|
"""
|
2018-01-13 23:33:03 +01:00
|
|
|
use EventosWeb, :view
|
|
|
|
|
|
|
|
def render("token.json", %{token: token, user: user}) do
|
|
|
|
%{token: token, user: render_one(user, EventosWeb.UserView, "user_simple.json")}
|
|
|
|
end
|
|
|
|
end
|